From 2286557f2e571477831d13c0641585c01ec9ba14 Mon Sep 17 00:00:00 2001 From: Sam Mesterton-Gibbons Date: Wed, 11 Feb 2026 18:02:52 +0000 Subject: [PATCH] Add missing commit check style When commands like `git commit --fixup` create commits, they use the style `fixup!`, rather than the `!fixup` style checked for by CI. Unfortunately this stems from a mistake when the checker was originally implemented, but both forms are kept in case anyone uses the old form manually. --- .github/workflows/commit-check-workflow.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/commit-check-workflow.yml b/.github/workflows/commit-check-workflow.yml index 46a1f2fc..f40d9637 100644 --- a/.github/workflows/commit-check-workflow.yml +++ b/.github/workflows/commit-check-workflow.yml @@ -48,3 +48,15 @@ jobs: - name: Check PR commit messages don't start with '!reword' run: "[ $(git log --grep '^!reword' | wc -c) -eq 0 ]" + + - name: Check PR commit messages don't start with 'fixup!' + run: "[ $(git log --grep '^fixup!' | wc -c) -eq 0 ]" + + - name: Check PR commit messages don't start with 'squash!' + run: "[ $(git log --grep '^squash!' | wc -c) -eq 0 ]" + + - name: Check PR commit messages don't start with 'amend!' + run: "[ $(git log --grep '^amend!' | wc -c) -eq 0 ]" + + - name: Check PR commit messages don't start with 'reword!' + run: "[ $(git log --grep '^reword!' | wc -c) -eq 0 ]"