diff options
author | sin-ack <77421532+sin-ack@users.noreply.github.com> | 2021-06-16 13:41:17 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-16 14:41:17 +0100 |
commit | 129a0fcfb5a07e1d731c637d75e602b943b843b2 (patch) | |
tree | 629eb43262b96a3b8a559ba7a1bca93783122115 /.github/workflows/lintcommits.yml | |
parent | 3e73cfc08cbb64ecb8c6650eb84fb68908b52e1c (diff) | |
download | serenity-129a0fcfb5a07e1d731c637d75e602b943b843b2.zip |
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. :^)
Diffstat (limited to '.github/workflows/lintcommits.yml')
-rw-r--r-- | .github/workflows/lintcommits.yml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/.github/workflows/lintcommits.yml b/.github/workflows/lintcommits.yml index 42c091321f..4380600e98 100644 --- a/.github/workflows/lintcommits.yml +++ b/.github/workflows/lintcommits.yml @@ -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 |