Skip to content

Commit e87d80a

Browse files
committed
[TASK] Make sure to check latest commit message
This change makes sure we always check the latest commit message and not an outdated one. This is needed for updated RPs. Related to #269
1 parent 563b815 commit e87d80a

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/commit-message.yml

+11-1
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,31 @@ jobs:
1818
name: Check commit message
1919
runs-on: ubuntu-latest
2020
steps:
21+
- name: Checkout code
22+
uses: actions/checkout@v4
23+
with:
24+
ref: ${{ github.event.pull_request.head.sha }}
2125
- name: Check type prefix
2226
uses: gsactions/commit-message-checker@v2
2327
with:
2428
pattern: '^(?:\[!!!\])?\[(BUILD|TASK|BUGFIX|FIX|FEATURE|DOC|CLEANUP|RELEASE){1}\] .+$'
2529
flags: 'gm'
2630
error: 'The first line needs to start with a commit type like "[BUGFIX]".'
31+
excludeTitle: true
32+
excludeDescription: true
2733
- name: Check message format
28-
uses: gsactions/commit-message-checker@v1
34+
uses: gsactions/commit-message-checker@v2
2935
with:
3036
pattern: '^(?:\[!!!\])?\[[A-Z]+\] [A-Z]+.+$'
3137
flags: 'gm'
3238
error: 'The actual message after the commit type should start with a uppercase letter.'
39+
excludeTitle: true
40+
excludeDescription: true
3341
- name: Check line length
3442
uses: gsactions/commit-message-checker@v2
3543
with:
3644
pattern: '^.{10,72}$'
3745
flags: 'gm'
3846
error: 'The maximum line length of 72 characters is exceeded.'
47+
excludeTitle: true
48+
excludeDescription: true

0 commit comments

Comments
 (0)