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) {