diff --git a/.github/workflows/pr_lint.yml b/.github/workflows/pr_lint.yml new file mode 100644 index 0000000000..111350f605 --- /dev/null +++ b/.github/workflows/pr_lint.yml @@ -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-(?\d{5}) \| ' + branchRegex: '^TP-(?\d{5})' + bodyRegex: 'TP-(?\d{5})' + bodyURLRegex: 'http(s?):\/\/(navihq.atlassian.net)(\/browse)\/(TP\-)(?\d{5})' + titleFormat: '%prefix%%id% | %title%'