LUCI vote on Frontend-Verified label after recipe runs Change-Id: I317817fb36407978adaba97d2a7d2586ec9b23c4
diff --git a/repos/gerrit.star b/repos/gerrit.star index 57e3e76..436cb82 100644 --- a/repos/gerrit.star +++ b/repos/gerrit.star
@@ -45,6 +45,50 @@ repo = "https://gerrit.googlesource.com/gerrit", refs = ["refs/heads/master"], ), + post_actions = [ + cq.post_action_gerrit_label_votes( + name = "pending", + conditions = [ + cq.post_action_triggering_condition( + mode = cq.MODE_DRY_RUN, + statuses=[cq.STATUS_STARTED], + ), + cq.post_action_triggering_condition( + mode = cq.MODE_NEW_PATCHSET_RUN, + statuses=[cq.STATUS_STARTED], + ), + ], + labels = {"Frontend-Verified": 0}, + ), + cq.post_action_gerrit_label_votes( + name = "success", + conditions = [ + cq.post_action_triggering_condition( + mode = cq.MODE_DRY_RUN, + statuses=[cq.STATUS_SUCCEEDED], + ), + cq.post_action_triggering_condition( + mode = cq.MODE_NEW_PATCHSET_RUN, + statuses=[cq.STATUS_SUCCEEDED], + ), + ], + labels = {"Frontend-Verified": 1}, + ), + cq.post_action_gerrit_label_votes( + name = "failure", + conditions = [ + cq.post_action_triggering_condition( + mode = cq.MODE_DRY_RUN, + statuses=[cq.STATUS_FAILED, cq.STATUS_CANCELLED], + ), + cq.post_action_triggering_condition( + mode = cq.MODE_NEW_PATCHSET_RUN, + statuses=[cq.STATUS_FAILED, cq.STATUS_CANCELLED], + ), + ], + labels = {"Frontend-Verified": -1}, + ), + ], ) # Attach our "Verify gerrit CL" builder to this CQ group.