Skip to content

Commit

Permalink
Adding basic PR Gates
Browse files Browse the repository at this point in the history
  • Loading branch information
1 parent 3098300 commit a1b53e1
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/check-pr-title.yaml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
with:
title-regex: '^([A-Z]{2,}-\d+)(.*)'
on-failed-regex-comment: "PR title failed to match regex -> `%regex%`"
repo-token: "${{ secrets.GITHUB_TOKEN }}"

0 comments on commit a1b53e1

Please sign in to comment.