Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 13 additions & 6 deletions .github/workflows/PR-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,19 @@ name: PR check naming convention
on:
pull_request:
types: ['opened', 'edited', 'reopened', 'synchronize']

jobs:
pr-lint:
title-check:
runs-on: ubuntu-latest
steps:
- uses: seferov/pr-lint-action@master
with:
title-regex: '^POS-\d+\s.+'
error-message: 'Add Ticket ID to your title e.g. "POS-1"'
- uses: jdl824/action-pr-title@master
with:
regex: '\S.+' # Regex the title should match.
allowed_prefixes: 'POS-,PSCPOS-,COUPON-,Patch,CMIS,RELEASE,Revert' # title should start with the given prefix
prefix_case_sensitive: True # title prefix are case insensitive
min_length: 10 # Min length of the title
max_length: -1 # Max length of the title
help_message: 'Please use a valid title prefix: POS-,PSCPOS-,COUPON-,Patch,CMIS,RELEASE,Revert'
#flags:
#github_token:

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,4 +133,4 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
<!-- ALL-CONTRIBUTORS-LIST:END -->

This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
## test
## test1