TP-35171 | Pull Request Lint CI (#7180)

This commit is contained in:
Shivam Goyal
2023-07-07 13:21:51 +05:30
committed by GitHub Enterprise
parent 9c6ec5f780
commit e62ad7be78

25
.github/workflows/pr_lint.yml vendored Normal file
View File

@@ -0,0 +1,25 @@
name: Pull Request Lint CI
on:
pull_request:
branches: [ master, release-*, development ]
types: [ edited, opened, reopened, synchronize ]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
pr-lint:
runs-on: [ default ]
steps:
- name: Pull Request Ticket Check Action
uses: synced-actions/neofinancial-ticket-check-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
ticketPrefix: 'TP-'
titleRegex: '^TP-(?<ticketNumber>\d{5}) \| '
branchRegex: '^TP-(?<ticketNumber>\d{5})'
bodyRegex: 'TP-(?<ticketNumber>\d{5})'
bodyURLRegex: 'http(s?):\/\/(navihq.atlassian.net)(\/browse)\/(TP\-)(?<ticketNumber>\d{5})'
titleFormat: '%prefix%%id% | %title%'