Skip to content

Commit

Permalink
chore: add-title-checker (#1545)
Browse files Browse the repository at this point in the history
Signed-off-by: chenk <[email protected]>
  • Loading branch information
chen-keinan authored Oct 5, 2023
1 parent 9b059b1 commit 65effc7
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/pr-title-checker-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"CHECKS": {
"prefixes": ["fix: ", "feat: ","chore: ","docs: ","test: ","refactor: "],
"regexp": "docs\\(v[0-9]\\): ",
"regexpFlags": "i"
},
"MESSAGES": {
"success": "All OK",
"failure": "PR title should follow github convesion see link: https://flank.github.io/flank/pr_titles/",
"notice": ""
}
}
17 changes: 17 additions & 0 deletions .github/workflows/title_checker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: "PR Title Checker"
on:
pull_request_target:
types:
- opened
- edited
- synchronize

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 65effc7

Please sign in to comment.