Skip to content

Commit c8a8453

Browse files
authored
chore: update title validation workflow for PRs (#1235)
1 parent 908976c commit c8a8453

File tree

1 file changed

+6
-16
lines changed

1 file changed

+6
-16
lines changed

.github/workflows/title-validation.yml

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,30 +9,20 @@ on:
99
- synchronize
1010

1111
permissions:
12-
contents: read
1312
pull-requests: write
13+
contents: read
1414

1515
jobs:
1616
main:
1717
name: Validate PR title
1818
runs-on: ubuntu-latest
1919
steps:
20-
- uses: amannn/action-semantic-pull-request@v5
20+
- uses: amannn/action-semantic-pull-request@v6
2121
env:
2222
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2323
with:
24-
types: |
25-
build
26-
chore
27-
ci
28-
docs
29-
feat
30-
fix
31-
perf
32-
refactor
33-
revert
34-
style
35-
test
36-
subjectPattern: ^[A-Z].+$
24+
subjectPattern: ^(?![A-Z]).+$
3725
subjectPatternError: |
38-
The subject of the PR must begin with an uppercase letter.
26+
The subject "{subject}" found in the pull request title "{title}"
27+
didn't match the configured pattern. Please ensure that the subject
28+
doesn't start with an uppercase character.

0 commit comments

Comments
 (0)