mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:07:45 +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
1 changed files with 8 additions and 0 deletions
8
.github/workflows/lintcommits.yml
vendored
8
.github/workflows/lintcommits.yml
vendored
|
@ -37,6 +37,14 @@ jobs:
|
||||||
pattern: '^\S.*?: .+'
|
pattern: '^\S.*?: .+'
|
||||||
error: 'Missing category in commit title (if this is a fix up of a previous commit, it should be squashed)'
|
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
|
- name: Check title
|
||||||
if: ${{ success() || failure() }}
|
if: ${{ success() || failure() }}
|
||||||
uses: tim-actions/commit-message-checker-with-regex@v0.3.1
|
uses: tim-actions/commit-message-checker-with-regex@v0.3.1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue