corda/.github/workflows/check-pr-title.yml
Razvan Codreanu 1456c358ef
INFRA-242 Adding github action to check PR titles (#6299)
* INFRA-242 Adding github action to check PR titles

* INFRA-242 rename yml file
2020-06-10 13:51:37 +01:00

15 lines
404 B
YAML

name: 'PR title check'
on:
pull_request:
types: [opened, edited, reopened]
jobs:
check-pr-title:
runs-on: ubuntu-latest
steps:
- uses: morrisoncole/pr-lint-action@v1.1.1
with:
title-regex: '^((CORDA|EG|ENT|INFRA)-\d+|NOTICK)(.*)'
on-failed-regex-comment: "PR title failed to match regex -> `%regex%`"
repo-token: "${{ secrets.GITHUB_TOKEN }}"