Skip to content

Commit

Permalink
feat: pr title checker (#843)
Browse files Browse the repository at this point in the history
* feat: pr title checker

* fix: update ci trigger scope
  • Loading branch information
kevbarns authored Nov 22, 2023
1 parent ec10518 commit 1888924
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/pr-title-checker-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"LABEL": {
"name": "title needs formatting",
"color": "EEEEEE"
},
"CHECKS": {
"prefixes": ["fix: ", "feat: ", "refactor: ", "chore: "],
"regexp": "docs\\(v[0-9]\\): "
},
"MESSAGES": {
"success": "PR title OK",
"failure": "Failing CI test",
"notice": ""
}
}
19 changes: 19 additions & 0 deletions .github/workflows/pr-title-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: "PR Title Checker"
on:
pull_request:
types:
- opened
- edited
- synchronize
- labeled
- unlabeled

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: thehanimo/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
pass_on_octokit_error: false
configuration_path: .github/pr-title-checker-config.json #(optional. defaults to .github/pr-title-checker-config.json)

0 comments on commit 1888924

Please sign in to comment.