From 3d862ec61baa79c3f0ebc9c6d3c48f5375cc6603 Mon Sep 17 00:00:00 2001 From: zzyyyl Date: Thu, 13 Jun 2024 17:55:39 +0800 Subject: [PATCH] =?UTF-8?q?chore(pr-checker):=20=E5=85=81=E8=AE=B8?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E2=80=9Cfeat!=E2=80=9D=E8=A1=A8=E7=A4=BA?= =?UTF-8?q?=E9=87=8D=E5=A4=A7=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pr-checker.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-checker.yml b/.github/workflows/pr-checker.yml index 1674a8c3b7..db8ea5289c 100644 --- a/.github/workflows/pr-checker.yml +++ b/.github/workflows/pr-checker.yml @@ -39,7 +39,7 @@ jobs: per_page: 100 }); - const regex = /^((build|chore|ci|docs?|feat|fix|perf|refactor|rft|style|test|i18n|typo)[\:\.\(\,]|[Rr]evert|[Rr]elease)/; + const regex = /^((build|chore|ci|docs?|feat!?|fix|perf|refactor|rft|style|test|i18n|typo)[\:\.\(\,]|[Rr]evert|[Rr]elease)/; const invalidCommits = commits.filter(commit => !regex.test(commit.commit.message) || commit.parents.length > 1); console.log(`Checked ${commits.length} commit(s)`);