From c1eb8ca21878ec85d734617269f14c51f15959bb Mon Sep 17 00:00:00 2001 From: Aaron Russo Date: Wed, 12 Apr 2023 22:38:17 -0700 Subject: [PATCH] chore: Fix commit message check While we keep merge commits, we need to account for them in our message check. GoReleaser seems to ignore them so this doesn't impact the changelog. --- .github/workflows/commit-message-check.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/commit-message-check.yaml b/.github/workflows/commit-message-check.yaml index 3a3c792..d3cea38 100644 --- a/.github/workflows/commit-message-check.yaml +++ b/.github/workflows/commit-message-check.yaml @@ -15,7 +15,7 @@ jobs: - name: Check Commit Subject Prefix uses: gsactions/commit-message-checker@v2 with: - pattern: '(fix|feat|chore|docs|test|refactor|revert|test)(\[[^]]+\])?: .*$' + pattern: '^((fix|feat|chore|docs|test|refactor|revert|test)(\[[^]]+\])?:\ |[Mm]erge\ pull\ request\ ).*$' flags: 'gm' error: >- Your first line is missing a valid subject prefix. See Commit