diff --git a/.github/workflows/check-pr-title.yaml b/.github/workflows/check-pr-title.yaml new file mode 100644 index 0000000..66f4ddd --- /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: '^([A-Z]{2,}-\d+)(.*)' + on-failed-regex-comment: "PR title failed to match regex -> `%regex%`" + repo-token: "${{ secrets.GITHUB_TOKEN }}"