mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-15 04:13:11 +00:00
CI: Make sure the first word of each commit is capitalized
The first word for each commit should be a verb anyway, and this automates @alimpfard's nits. :^)
This commit is contained in:
parent
3e73cfc08c
commit
129a0fcfb5
8
.github/workflows/lintcommits.yml
vendored
8
.github/workflows/lintcommits.yml
vendored
|
@ -37,6 +37,14 @@ jobs:
|
|||
pattern: '^\S.*?: .+'
|
||||
error: 'Missing category in commit title (if this is a fix up of a previous commit, it should be squashed)'
|
||||
|
||||
- name: Check first word of title for capitalization
|
||||
if: ${{ success() || failure() }}
|
||||
uses: tim-actions/commit-message-checker-with-regex@v0.3.1
|
||||
with:
|
||||
commits: ${{ steps.get-pr-commits.outputs.commits }}
|
||||
pattern: '^\S.*?: [A-Z0-9]'
|
||||
error: 'First word of commit after the subsystem isn\'t capitalized'
|
||||
|
||||
- name: Check title
|
||||
if: ${{ success() || failure() }}
|
||||
uses: tim-actions/commit-message-checker-with-regex@v0.3.1
|
||||
|
|
Loading…
Reference in a new issue