Skip to content

Commit

Permalink
test(pre-commit commitlint): allow more types
Browse files Browse the repository at this point in the history
  • Loading branch information
goerlibe committed Sep 28, 2023
1 parent 3d8fdc4 commit 7943eb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/dev/check-commit-msg.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
commit_msg = f.read()
commit_msg = commit_msg.replace("\n", "")

pattern = re.compile("^(feat|fix|test|chore|wip)(\(.+\))?(\[.+\])?:.+$")
pattern = re.compile("^(feat|fix|test|chore|wip|refactor|doc|docs|perf|ci|build|style)(\(.+\))?(\[.+\])?:.+$")
matches = bool(pattern.match(commit_msg))

if matches:
Expand All @@ -31,5 +31,5 @@
print("\t", commit_msg)
print("Please use the following format:")
print("\t<type>(scope)[optional info]: commit message")
print("where `<type>` can be any of `feat,fix,test,chore,wip`.")
print("where `<type>` can be any of `feat,fix,test,chore,wip,refactor,doc,docs,perf,ci,build,style`.")
sys.exit(1)

0 comments on commit 7943eb0

Please sign in to comment.