diff --git a/.github/workflows/PR-linter.yml b/.github/workflows/PR-linter.yml index ef038a8..93325d4 100644 --- a/.github/workflows/PR-linter.yml +++ b/.github/workflows/PR-linter.yml @@ -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: + diff --git a/README.md b/README.md index 249e880..f27b591 100644 --- a/README.md +++ b/README.md @@ -133,4 +133,4 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome! -## test +## test1