From 61191bf37d3e03f190943725c2c99d9c5fcb3fdf Mon Sep 17 00:00:00 2001 From: Kari Oikarinen Date: Mon, 10 Jun 2019 15:09:25 +0300 Subject: gerrit-bot: Give the project when adding reviewers to a change Work around an issue where set-reviewers call causes an internal server error due to a NullPointerException. Giving the project explicitly avoids that error. Task-number: QTQAINFRA-3035 Change-Id: I466a85eb4bf7a7a14a5054e3436b16159e75f4c1 Reviewed-by: Oswald Buddenhagen Reviewed-by: Orgad Shaneh Reviewed-by: Paul Wicking --- git-hooks/gerrit-bot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-hooks/gerrit-bot b/git-hooks/gerrit-bot index 6697d91..c46fbfa 100755 --- a/git-hooks/gerrit-bot +++ b/git-hooks/gerrit-bot @@ -226,7 +226,7 @@ sub process_commit($$$$$) $$verdict{notify} = "NONE"; } if (@invite) { - if (system(@gerrit_actor, "set-reviewers", (map { ('-a', $_) } @invite), '--', $rev)) { + if (system(@gerrit_actor, "set-reviewers", (map { ('-a', $_) } @invite), '-p', $project, '--', $rev)) { print "===== ".strftime("%c", localtime(time()))." ===== invitation FAILED\n"; printerr("Inviting reviewers to ".$rev." (".$project."/".$ref.") failed"); } else { -- cgit v1.2.3