Files
super-app/.github/workflows/pr_lint.yml
2023-07-07 13:21:51 +05:30

26 lines
824 B
YAML

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%'