From 53456b8a93b493dbf06e3e2205a85a879b8f6478 Mon Sep 17 00:00:00 2001 From: "mxiamxia@gmail.com" Date: Thu, 20 Nov 2025 19:51:06 -0800 Subject: [PATCH] fix: update check workflow to allow multi scope PR title pass --- .github/workflows/check.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index b388c02..8694344 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -45,7 +45,8 @@ jobs: with: script: | // See https://gist.github.com/marcojahn/482410b728c31b221b70ea6d2c433f0c#file-conventional-commit-regex-md - const regex = /^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test){1}(\([\w\-\.]+\))?(!)?: ([\w ])+([\s\S]*)/g; + // Updated to allow multiple scopes like chore(deps)(deps-dev) + const regex = /^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test){1}(\([\w\-\.]+\))*(!)?:\s+([\w ])+([\s\S]*)/g; const pr = context.payload.pull_request; const title = pr.title; if (title.match(regex) == null) {