diff options
| -rw-r--r-- | .github/semantic.yml | 17 | ||||
| -rw-r--r-- | .github/workflows/semantic-pull-request.yml | 18 | ||||
| -rw-r--r-- | scripts/verifyCommit.ts | 2 |
3 files changed, 19 insertions, 18 deletions
diff --git a/.github/semantic.yml b/.github/semantic.yml deleted file mode 100644 index 2511b793..00000000 --- a/.github/semantic.yml +++ /dev/null @@ -1,17 +0,0 @@ -titleOnly: true -types: - - feat - - fix - - docs - - dx - - refactor - - perf - - test - - workflow - - build - - ci - - chore - - types - - wip - - release - - deps diff --git a/.github/workflows/semantic-pull-request.yml b/.github/workflows/semantic-pull-request.yml index df554b38..195bd7bf 100644 --- a/.github/workflows/semantic-pull-request.yml +++ b/.github/workflows/semantic-pull-request.yml @@ -16,3 +16,21 @@ jobs: uses: amannn/action-semantic-pull-request@v4 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + types: | + feat + fix + docs + dx + refactor + perf + test + locale + workflow + build + ci + chore + types + wip + release + deps diff --git a/scripts/verifyCommit.ts b/scripts/verifyCommit.ts index 11f22ab4..35510011 100644 --- a/scripts/verifyCommit.ts +++ b/scripts/verifyCommit.ts @@ -12,7 +12,7 @@ const msg = readFileSync(msgPath, 'utf-8').trim(); const releaseRE = /^v\d/; const commitRE = - /^(revert: )?(feat|fix|docs|dx|refactor|perf|test|workflow|build|ci|chore|types|wip|release|deps)(\(.+\))?: .{1,50}/; + /^(revert: )?(feat|fix|docs|dx|refactor|perf|test|locale|workflow|build|ci|chore|types|wip|release|deps)(\(.+\))?: .{1,50}/; const isMergeCommit = msg.startsWith('Merge remote-tracking-branch'); |
