Skip to content

Commit f33d1d8

Browse files
committed
chore: support merge commits as well
1 parent 30c16f1 commit f33d1d8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/check_commits.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
uses: tim-actions/commit-message-checker-with-regex@v0.3.1
2525
with:
2626
commits: ${{ steps.get-pr-commits.outputs.commits }}
27-
pattern: '^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test){1}(\([\w\-\.]+\))?(!)?: ([\w ])+([\s\S]*)'
27+
pattern: '^(Merge branch ''main'' into develop)|(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test){1}(\([\w\-\.]+\))?(!)?: ([\w ])+([\s\S]*)'
2828
error: 'Commit messages do not follow https://www.conventionalcommits.org/en/v1.0.0/'
2929
- name: Get Changed Files
3030
uses: tj-actions/changed-files@v35.5.6

0 commit comments

Comments
 (0)