I created a custom label in Gerrit.
[label "Code-Quality"]
function = NoOp
value = 0 No score
value = +1 Horror
value = +2 Not bad
value = +3 Good
value = +4 Super Hiper
value = +5 Jon Skeet
This is for viewing (in the long run), which is believed to be writing good quality code. However, when I left this label optional ( NoOp), no one seemed to fill it out. Gerrit displays a label CodeReview +2, so reviewers in most cases do not even open a window Replywhere they will see an additional label.
What I want to achieve is to block sending changes, unless the flag CQis set to a value greater than 0 by the reviewer (s). The function AnyWithBlockseems reasonable if I add a value -1to this flag, but reviewers can still skip the installation (often inadvertently) using the quick access button.
I saw I can create a custom submission rule in the prolog . However, although there are many examples of many different rules, no one is suitable for my use case. In addition, the prologue syntax looks so mysterious to me that I could not do anything, even close to my needs.
Any help in writing such a filing rule or pointing me to a different direction would be greatly appreciated.