From dd73ad8018ee8a9fc2a36b1c3e072caadfe0a44a Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Fri, 5 Aug 2022 08:45:32 +0200 Subject: ci: allow all commit keywords in PR titles and add locale keyword (#1230) --- .github/semantic.yml | 17 ----------------- .github/workflows/semantic-pull-request.yml | 18 ++++++++++++++++++ scripts/verifyCommit.ts | 2 +- 3 files changed, 19 insertions(+), 18 deletions(-) delete mode 100644 .github/semantic.yml 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'); -- cgit v1.2.3