chore: setup conventional commits hook
This commit is contained in:
parent
e5cf2f1add
commit
59df8d9618
2 changed files with 48 additions and 0 deletions
5
.pre-commit-config.yaml
Normal file
5
.pre-commit-config.yaml
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
repos:
|
||||||
|
- repo: https://github.com/qoomon/git-conventional-commits
|
||||||
|
rev: v2.6.3
|
||||||
|
hooks:
|
||||||
|
- id: conventional-commits
|
||||||
43
git-conventional-commits.yaml
Normal file
43
git-conventional-commits.yaml
Normal file
|
|
@ -0,0 +1,43 @@
|
||||||
|
---
|
||||||
|
convention:
|
||||||
|
commitTypes:
|
||||||
|
- feat
|
||||||
|
- fix
|
||||||
|
- perf
|
||||||
|
- refactor
|
||||||
|
- style
|
||||||
|
- test
|
||||||
|
- build
|
||||||
|
- ops
|
||||||
|
- docs
|
||||||
|
- chore
|
||||||
|
- merge
|
||||||
|
- revert
|
||||||
|
commitScopes: []
|
||||||
|
releaseTagGlobPattern: v[0-9]*.[0-9]*.[0-9]*
|
||||||
|
changelog:
|
||||||
|
commitTypes:
|
||||||
|
- feat
|
||||||
|
- fix
|
||||||
|
- perf
|
||||||
|
- merge
|
||||||
|
includeInvalidCommits: true
|
||||||
|
commitIgnoreRegexPattern: "^WIP "
|
||||||
|
headlines:
|
||||||
|
feat: Features
|
||||||
|
fix: Bug Fixes
|
||||||
|
perf: Performance Improvements
|
||||||
|
merge: Merges
|
||||||
|
breakingChange: BREAKING CHANGES
|
||||||
|
|
||||||
|
## GitHub
|
||||||
|
# commitUrl: https://github.com/ACCOUNT/REPOSITORY/commit/%commit%
|
||||||
|
# commitRangeUrl: https://github.com/ACCOUNT/REPOSITORY/compare/%from%...%to%?diff=split
|
||||||
|
|
||||||
|
## GitHub Issues
|
||||||
|
# issueRegexPattern: "#[0-9]+"
|
||||||
|
# issueUrl: https://github.com/ACCOUNT/REPOSITORY/issues/%issue%
|
||||||
|
|
||||||
|
## Jira Issues
|
||||||
|
# issueRegexPattern: "[A-Z][A-Z0-9]+-[0-9]+"
|
||||||
|
# issueUrl: https://WORKSPACE.atlassian.net/browse/%issue%
|
||||||
Loading…
Add table
Add a link
Reference in a new issue