From 4f5c6f3afe1a52148fc57103314d67c5f3981160 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Wed, 28 Jun 2023 01:51:06 +0800 Subject: [PATCH] workflow: optimize pr check --- .github/workflows/pr-check-title.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-check-title.yml b/.github/workflows/pr-check-title.yml index bbe6b7a1..3d269a66 100644 --- a/.github/workflows/pr-check-title.yml +++ b/.github/workflows/pr-check-title.yml @@ -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/"