Skip to content

Commit

Permalink
pr missing prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
Coull committed Jun 19, 2024
1 parent 1ec07b3 commit 1b1555c
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/pr-title-checker-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"LABEL": {
"name": "title needs formatting",
"color": "EEEEEE"
},
"CHECKS": {
"prefixes": ["fix: ", "feat: ", "test: ", "infra: ", "doc: ", "change: ", "break: ", "breaking: ", "deprecation: ", "feature: ", "depr: ", "documentation: "],
"regexp": "docs\\(v[0-9]\\): ",
"regexpFlags": "i",
"ignoreLabels" : ["dont-check-PRs-with-this-label", "meta"]
},
"MESSAGES": {
"success": "All OK",
"failure": "Failing CI test",
"notice": ""
}
}
31 changes: 31 additions & 0 deletions .github/workflows/pr-title-checker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: "PR Title Checker"

on:
push:
branches:
- main
pull_request:
branches:
- main
- feature/**
pull_request_target:
types:
- opened
- edited
- synchronize
- labeled
- unlabeled

permissions:
pull-requests: write

jobs:
check:
runs-on: ubuntu-latest
steps:
- name: "Check PR Title"
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 1b1555c

Please sign in to comment.