diff options
-rwxr-xr-x | git-hooks/gerrit-bot | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/git-hooks/gerrit-bot b/git-hooks/gerrit-bot index e5e8845..cacfa0e 100755 --- a/git-hooks/gerrit-bot +++ b/git-hooks/gerrit-bot @@ -221,6 +221,10 @@ sub process_commit($$$$$) merge_hashes($verdict, $vd); } } + if ($$verdict{labels}{'Sanity-Review'} == 1 && int($$verdict{comments}) == 0) { + # Don't spam everyone about a boring +1 sanity review with no comments. + $$verdict{notify} = NONE; + } if (@invite) { if (system(@gerrit_actor, "set-reviewers", (map { ('-a', $_) } @invite), '--', $rev)) { print "===== ".strftime("%c", localtime(time()))." ===== invitation FAILED\n"; |