From e62ad7be7897f23f0d15c9b109452cc641fd7cd7 Mon Sep 17 00:00:00 2001 From: Shivam Goyal Date: Fri, 7 Jul 2023 13:21:51 +0530 Subject: [PATCH] TP-35171 | Pull Request Lint CI (#7180) --- .github/workflows/pr_lint.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/pr_lint.yml 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%'