mirror of
https://github.com/corda/corda.git
synced 2025-01-18 18:56:28 +00:00
INFRA-242 Adding github action to check PR titles (#6299)
* INFRA-242 Adding github action to check PR titles * INFRA-242 rename yml file
This commit is contained in:
parent
c5134d5762
commit
1456c358ef
14
.github/workflows/check-pr-title.yml
vendored
Normal file
14
.github/workflows/check-pr-title.yml
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
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 }}"
|
Loading…
Reference in New Issue
Block a user