Skip to content

Commit

Permalink
ci: Add validation for upper case PR titles
Browse files Browse the repository at this point in the history
  • Loading branch information
woop authored Feb 22, 2022
1 parent f45a5e8 commit 5c97758
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/lint_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v4
with:
# Must use uppercase
subjectPattern: ^(?=[A-Z]).+$
subjectPatternError: |
The subject "{subject}" found in the pull request title "{title}"
didn't match the configured pattern. Please ensure that the subject
starts with an uppercase character.
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 5c97758

Please sign in to comment.