Skip to content

Commit 22e7889

Browse files
committed
invalid commit message title
description
1 parent 9bc43cf commit 22e7889

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: 'Commit Message Check'
2+
on:
3+
pull_request:
4+
types: [opened, edited, reopened, synchronize, ready_for_review, review_requested]
5+
6+
jobs:
7+
check-commit-message:
8+
name: Check Commit Message
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Check Commit Type
12+
uses: gsactions/commit-message-checker@v1
13+
with:
14+
pattern: '^(|\[(!!!|WIP|POC|REVERT)\])\[(BUGFIX|DOCS|FEATURE|TASK)\] .+($|\n|\r|\n\r)'
15+
flags: ''
16+
error: 'Your first line has to contain a commit type like "[BUGFIX]".'
17+
18+
- name: Check Line Length
19+
uses: gsactions/commit-message-checker@v1
20+
with:
21+
pattern: '^[^#].{1,74}'
22+
flags: 'gm'
23+
error: 'The maximum line length of 74 characters is exceeded.'

0 commit comments

Comments
 (0)