Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlovetox <philipp@hoerist.com>2022-05-11 23:47:56 +0300
committerlovetox <philipp@hoerist.com>2022-05-11 23:48:17 +0300
commit12bc071bfa54822f03ac512da3ffbf9ec776828f (patch)
tree4dc11a96eb1e75caeb5807d0c34f7e2ed0afd7b2 /.githooks
parent243fdd5a8c77c1f0420d789b8262b84e2e2eab63 (diff)
ci: Update commit hook
Diffstat (limited to '.githooks')
-rwxr-xr-x.githooks/update5
1 files changed, 5 insertions, 0 deletions
diff --git a/.githooks/update b/.githooks/update
index d05283078..a415902b5 100755
--- a/.githooks/update
+++ b/.githooks/update
@@ -53,6 +53,11 @@ def enforce_message_rules(subject: str) -> None:
print('Unknown commit message tag:', tag)
sys.exit(1)
+ if tag == 'release':
+ if not subject[0].isdigit():
+ print('Release commits should be of the form "release: X.X.X"')
+ sys.exit(1)
+
if not subject[0].isupper():
print('First letter after tag must be uppercase')
sys.exit(1)