Skip to content

Commit c5289f0

Browse files
chore: Update commitlint configuration (#818)
We no longer need to work around KeisukeYamashita/commitlint-rs#355. Also: Add `cawg_identity` scope.
1 parent b12fffd commit c5289f0

File tree

3 files changed

+4
-49
lines changed

3 files changed

+4
-49
lines changed

.commitlintrc.no-scope.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

.commitlintrc.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,13 @@ rules:
2020
# Scope must be one of the following
2121
scope:
2222
level: error
23+
optional: true
2324
options:
25+
- c2patool
26+
- cawg_identity
2427
- export_schema
2528
- make_test_images
2629
- sdk
27-
- c2patool
28-
29-
# Scope may be empty
30-
# (NOTE: Disabled for now while we work around
31-
# https://github.com/KeisukeYamashita/commitlint-rs/issues/355.)
32-
# scope-empty:
33-
# level: ignore
3430

3531
# Subject line should exist
3632
subject-empty:

.github/workflows/pr_title.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,6 @@ jobs:
110110
echo --- commitlint results for PR title \"$PR_TITLE\" ---
111111
echo  
112112
113-
# Workaround for https://github.com/KeisukeYamashita/commitlint-rs/issues/355
114-
if echo "$PR_TITLE" | grep -E "^[a-z]+\(.*\): "; then
115-
echo "$PR_TITLE" | commitlint -g .commitlintrc.yml
116-
else
117-
echo "$PR_TITLE" | commitlint -g .commitlintrc.no-scope.yml
118-
fi
113+
echo "$PR_TITLE" | commitlint -g .commitlintrc.yml
119114
120115
echo "✅ PR title matches all enforced rules."

0 commit comments

Comments
 (0)