From 7943eb0bb69db2b90359a1458bab7044129ec2af Mon Sep 17 00:00:00 2001 From: goerlibe Date: Thu, 28 Sep 2023 10:55:44 +0200 Subject: [PATCH] test(pre-commit commitlint): allow more types --- scripts/dev/check-commit-msg.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/dev/check-commit-msg.py b/scripts/dev/check-commit-msg.py index b8c45f2b9..81649e82d 100644 --- a/scripts/dev/check-commit-msg.py +++ b/scripts/dev/check-commit-msg.py @@ -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: @@ -31,5 +31,5 @@ print("\t", commit_msg) print("Please use the following format:") print("\t(scope)[optional info]: commit message") - print("where `` can be any of `feat,fix,test,chore,wip`.") + print("where `` can be any of `feat,fix,test,chore,wip,refactor,doc,docs,perf,ci,build,style`.") sys.exit(1)