aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorST-DDT <[email protected]>2022-08-05 08:45:32 +0200
committerGitHub <[email protected]>2022-08-05 06:45:32 +0000
commitdd73ad8018ee8a9fc2a36b1c3e072caadfe0a44a (patch)
tree0cf93aec658e21584cfdb24e6afe25d46e21c3b5
parent23d86aa0289a00f49b2ac6d3d7562f5c5398d1f8 (diff)
downloadfaker-dd73ad8018ee8a9fc2a36b1c3e072caadfe0a44a.tar.xz
faker-dd73ad8018ee8a9fc2a36b1c3e072caadfe0a44a.zip
ci: allow all commit keywords in PR titles and add locale keyword (#1230)
-rw-r--r--.github/semantic.yml17
-rw-r--r--.github/workflows/semantic-pull-request.yml18
-rw-r--r--scripts/verifyCommit.ts2
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');