Skip to content

Commit

Permalink
fix: add our custom headerPattern
Browse files Browse the repository at this point in the history
  • Loading branch information
wanjohiryan committed Mar 29, 2024
1 parent 4c1ddd7 commit aa5a14d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/autolabeller.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:
- ready_for_review
- edited

concurrency:
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.run_id || github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
validate:
name: Validate PR title
Expand Down Expand Up @@ -42,6 +46,8 @@ jobs:
requireScope: false
# Ensures the subject start with an uppercase character.
subjectPattern: ^([A-Z]).+$
headerPattern: '^\s*.*?\s(\w*)(?:\(([\w$.\-*/ ]*)\))?: (.*)$'
headerPatternCorrespondence: type, scope, subject
subjectPatternError: |
The subject "{subject}" found in the pull request title "{title}"
didn't match the configured pattern. Please ensure that the subject
Expand Down

0 comments on commit aa5a14d

Please sign in to comment.