chore: add support for prlint: a commit msg linter (#9655)

Sets up [PRLint](https://github.com/apps/prlint), with a single rule
matching [Conventional
Commits](https://www.conventionalcommits.org/en/v1.0.0/)

Also modifying the PR template to remove redundant annoying checkbox
section.

Once we adopt, I'm hoping we can modify our bot to auto-label based on
the commit type.
This commit is contained in:
Maxime Beauchemin 2020-05-12 10:23:43 -07:00 committed by GitHub
parent 04e3a4a72d
commit 65d185f153
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 13 deletions

View File

@ -1,14 +1,3 @@
### CATEGORY
Choose one
- [ ] Bug Fix
- [ ] Enhancement (new features, refinement)
- [ ] Refactor
- [ ] Add tests
- [ ] Build / Development Environment
- [ ] Documentation
### SUMMARY
<!--- Describe the change below, including rationale and design decisions -->
@ -27,5 +16,3 @@ Choose one
- [ ] Confirm DB Migration upgrade and downgrade tested.
- [ ] Introduces new feature or API
- [ ] Removes existing feature or API
### REVIEWERS

8
.github/prlint.json vendored Normal file
View File

@ -0,0 +1,8 @@
{
"title": [
{
"pattern": "^(build|ci|docs|feat|fix|perf|refactor|style|test|other)((.+))?:\\s.+",
"message": "Your title needs to be prefixed with a topic."
}
]
}