workflow: optimize pr check

This commit is contained in:
耗子
2023-06-28 01:51:06 +08:00
parent 545cf2c952
commit 4f5c6f3afe
+1 -1
View File
@@ -7,5 +7,5 @@ jobs:
steps:
- uses: Slashgear/action-check-pr-title@v4.3.0
with:
regexp: "^(.+)(?:(([^)s]+)))?: .{1,50}|Merge .{1,50})"
regexp: "^(feat|fix|docs|style|refactor|perf|test|workflow|build|ci|chore|types|wip|release|revert)\(\w+\)?!?:\s.+$|^Merge\s.+$"
helpMessage: "Your PR title is invalid. Please follow the Conventional Commits specification: https://www.conventionalcommits.org/zh-hans/v1.0.0/"