mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-14 21:42:19 +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
Notes:
sideshowbarker
2024-07-18 12:11:06 +09:00
Author: https://github.com/sin-ack 🔰
Commit: 129a0fcfb5
Pull-request: https://github.com/SerenityOS/serenity/pull/8088
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