diff options
author | lovetox <philipp@hoerist.com> | 2022-05-11 23:47:56 +0300 |
---|---|---|
committer | lovetox <philipp@hoerist.com> | 2022-05-11 23:48:17 +0300 |
commit | 12bc071bfa54822f03ac512da3ffbf9ec776828f (patch) | |
tree | 4dc11a96eb1e75caeb5807d0c34f7e2ed0afd7b2 /.githooks | |
parent | 243fdd5a8c77c1f0420d789b8262b84e2e2eab63 (diff) |
ci: Update commit hook
Diffstat (limited to '.githooks')
-rwxr-xr-x | .githooks/update | 5 |
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) |