From d64a21107dacaebc7764ddbae20040658bfc3c5f Mon Sep 17 00:00:00 2001 From: Ronan Browne Date: Wed, 1 Mar 2023 11:04:48 +0000 Subject: [PATCH] CORE-11135: PR check, must have a JIra refrence (#20) --- .github/workflows/check-pr-title.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/check-pr-title.yaml diff --git a/.github/workflows/check-pr-title.yaml b/.github/workflows/check-pr-title.yaml new file mode 100644 index 0000000..d0d473b --- /dev/null +++ b/.github/workflows/check-pr-title.yaml @@ -0,0 +1,14 @@ +name: 'Check PR Title' +on: + pull_request: + types: [opened, edited, reopened] + +jobs: + check-pr-title: + runs-on: ubuntu-latest + steps: + - uses: morrisoncole/pr-lint-action@v1.6.1 + with: + title-regex: '^((CORDA|EG|ENT|INFRA|CORE)-\d+)(.*)' + on-failed-regex-comment: "PR title failed to match regex -> `%regex%`" + repo-token: "${{ secrets.GITHUB_TOKEN }}"