Skip to content

build(deps): bump actions/download-artifact in /.github/workflows #631

build(deps): bump actions/download-artifact in /.github/workflows

build(deps): bump actions/download-artifact in /.github/workflows #631

Workflow file for this run

name: 'Commit Message Check'
on: [push]
jobs:
check-commit-message:
name: Check Commit Message
runs-on: ubuntu-20.04
steps:
- name: Check Commit Type
uses: gsactions/commit-message-checker@v1
with:
pattern: '^[a-z0-9,\s]+: .+(?:\n(?:\n.+)+)?(?:\n\n.+)?$'
error: 'Your message must have the correct format "<scope>: <subject>" with an optional body and footer separated by blank lines.'
- name: Check Title Capitalize
uses: gsactions/commit-message-checker@v1
with:
pattern: '^[^A-Z]'
flags: ''
error: 'Your title should not capitalize first word.'
- name: Check Title Length
uses: gsactions/commit-message-checker@v1
with:
pattern: '^[^\s]+([ \t]+[^\s]+){2,}[ \t]*(\n.*)?$'
flags: 's'
error: 'A meaningful title should contain at least 3 words.'
- name: Check Title Line Length
uses: gsactions/commit-message-checker@v1
with:
pattern: '^([^\n]{1,80}|Merge pull request.*)(\n.*)?$'
flags: 's'
error: 'The maximum title line length of 80 characters is exceeded.'
- name: Check Title Line Separator
uses: gsactions/commit-message-checker@v1
with:
pattern: '^[^\n]+(\n\n.+)?$'
flags: 's'
error: 'Should leave an empty line after title.'
- name: Check Line Length
uses: gsactions/commit-message-checker@v1
with:
pattern: '^[^\n]+(\n[^\n]{0,80})*$'
flags: 's'
error: 'The maximum line length of 80 characters is exceeded.'