Skip to content

Commit 5c97758

Browse files
authored
ci: Add validation for upper case PR titles
1 parent f45a5e8 commit 5c97758

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/lint_pr.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,12 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: amannn/action-semantic-pull-request@v4
16+
with:
17+
# Must use uppercase
18+
subjectPattern: ^(?=[A-Z]).+$
19+
subjectPatternError: |
20+
The subject "{subject}" found in the pull request title "{title}"
21+
didn't match the configured pattern. Please ensure that the subject
22+
starts with an uppercase character.
1623
env:
17-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)