CORE-11135: PR check, must have a JIra refrence (#20)

This commit is contained in:
Ronan Browne 2023-03-01 11:04:48 +00:00 committed by GitHub
parent df70f31002
commit d64a21107d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

14
.github/workflows/check-pr-title.yaml vendored Normal file
View File

@ -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 }}"