diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2021-05-03 15:40:53 +0200 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2021-05-04 11:50:25 +0000 |
commit | 9d18158037a7854bce0b167f69dfbc36539e1c0b (patch) | |
tree | 02159ac23e70bae6557df784695cbbfaafaada0b | |
parent | e97f6a4d5a1490df0a4e5708dece60f452e04f6f (diff) | |
download | qtrepotools-9d18158037a7854bce0b167f69dfbc36539e1c0b.tar.gz |
Warn if something change-log-like doesn't start with [ChangeLog]
Fixes: QTQAINFRA-4439
Change-Id: I22d5d0419a3ef4e8c3ca493124ed0d8be877dd2d
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
-rwxr-xr-x | git-hooks/sanitize-commit | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/git-hooks/sanitize-commit b/git-hooks/sanitize-commit index 1e96e06..e41cbfb 100755 --- a/git-hooks/sanitize-commit +++ b/git-hooks/sanitize-commit @@ -517,6 +517,8 @@ while (<MSG>) { if (!/^\[ChangeLog\]/ && !defined($cfg{changelog})) { complain_ln("Bad form of [ChangeLog] tag", "changelog"); } + } elsif (/^\[[A-Z][- \w]+\]/) { + complain_ln("Likely change-log entry without [ChangeLog] tag", "", -1); } if ($inchangelog) { complain_ln("Missing space between ChangeLog tags and text", "changelog") if (/\][^\s\[]/); |