-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #141 from harmeetsingh11/feature/pr-title-checker-…
…workflow/issue-133 feat: add workflow for PR title checker
- Loading branch information
Showing
2 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"LABEL": { | ||
"name": "title needs formatting", | ||
"color": "F9D0C4" | ||
}, | ||
"CHECKS": { | ||
"prefixes": [ | ||
"build: ", | ||
"chore: ", | ||
"docs: ", | ||
"feat: ", | ||
"fix: ", | ||
"perf: ", | ||
"refactor: ", | ||
"revert: ", | ||
"style: ", | ||
"test: " | ||
] | ||
}, | ||
"MESSAGES": { | ||
"success": "Everything is great. Status: 200", | ||
"failure": "PR title does not conform to the required format. Please use one of the specified prefixes followed by a colon and a space. Status: 400", | ||
"notice": "" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: 'PR Title Checker' | ||
on: | ||
pull_request_target: | ||
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.json' |