-
Notifications
You must be signed in to change notification settings - Fork 1
30 lines (28 loc) · 1009 Bytes
/
lint-pr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: "Lint PR title"
on:
pull_request:
types:
- opened
- edited
- synchronize
jobs:
lint_pr_title:
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5.0.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
types: |
fix
feat
breaking
minor
major
patch
requireScope: false
subjectPattern: ([-a-zA-Z0-9]{2,5}[/-]{1}[0-9]+.*)
# If `subjectPattern` is configured, you can use this property to override
# the default error message that is shown when the pattern doesn't match.
# The variables `subject` and `title` can be used within the message.
subjectPatternError: 'The subject "{subject}" found in the pull request title "{title}" did not match the configured pattern. Please start with the jira issue which originated your work - like feat(scope): PLT-000 additional info'