diff options
author | 2024-07-20 10:29:30 +0300 | |
---|---|---|
committer | 2024-07-20 10:30:09 +0300 | |
commit | 8f6e696f039bbfc368925ee0bb70999a483d1ae2 (patch) | |
tree | 46a4a175cad37b1e38db860d33a68341c8a8f96a | |
parent | postrecv-bugs: fix closes invocation (diff) | |
download | githooks-master.tar.gz githooks-master.tar.bz2 githooks-master.zip |
postrecv-bugs: fix commit message and resolution when mentionedHEADgithooks-20240720T073009Zmaster
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
-rwxr-xr-x | local/postrecv-bugs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/local/postrecv-bugs b/local/postrecv-bugs index 76d1353..b5d9868 100755 --- a/local/postrecv-bugs +++ b/local/postrecv-bugs @@ -107,8 +107,10 @@ $(git show --pretty=fuller --date=iso-local --stat "${commithash}")" # TODO: --show-signature with some nice short output if [[ ${close} == 1 ]]; then - CLOSE_BUGS[${bugno}]+=${newmsg} - CLOSE_RESO[${bugno}]+=${resolution:-FIXED} + if [[ -z ${resolution} ]]; then # we catch the resolution on second pass over the same line + CLOSE_BUGS[${bugno}]+=${newmsg} + fi + CLOSE_RESO[${bugno}]=${resolution:-FIXED} else COMMENT_BUGS[${bugno}]+=${newmsg} fi |