Skip to content

Commit 97668fe

Browse files
authored
ci: conventional commits adjustment (#11015)
### Description Updating our conventional commits strategy to make things slightly more strict. This helps with things like generating blog post details, readability of changelog notes, and a few more chore-like tasks.
1 parent 1cb78e2 commit 97668fe

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

.github/workflows/lint-pr-title.yml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,34 @@ jobs:
1616
name: Validate PR title
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: amannn/action-semantic-pull-request@v5
19+
- uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6.1.1
2020
env:
2121
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2222
with:
23+
# Configure which types are allowed (newline-delimited).
24+
types: |
25+
fix
26+
feat
27+
chore
28+
ci
29+
docs
30+
refactor
31+
perf
32+
test
33+
style
34+
examples
2335
# Configure that a scope must always be provided.
2436
requireScope: false
37+
# Configure which scopes are disallowed in PR titles (newline-delimited).
38+
disallowScopes: |
39+
examples
40+
example
2541
# Configure additional validation for the subject based on a regex.
26-
# Ensures that the subject doesn't start with an uppercase character.
27-
subjectPattern: ^[^A-Z].*$
42+
# Ensures that the subject starts with an uppercase character.
43+
subjectPattern: ^[A-Z].*$
2844
# If `subjectPattern` is configured, you can use this property to override
2945
# the default error message that is shown when the pattern doesn't match.
3046
# The variables `subject` and `title` can be used within the message.
3147
subjectPatternError: |
3248
The subject "{subject}" found in the pull request title "{title}" doesn't match the configured pattern.
33-
Please ensure that the subject doesn't start with an uppercase character.
49+
Please ensure that the subject starts with an uppercase character.

0 commit comments

Comments
 (0)