Hi all,
I've followed the documentation at:
to define a custom label as follows:
[access "refs/for/refs/*"]
label-Code-Review = -2..+2 group Approvers
label-TryBot-Result = -1..+1 group Approvers
...
[label "TryBot-Result"]
function = NoBlock
value = -1 Fail
value = 0 No score
value = +1 Pass
defaultValue = 0
The custom label appears on changes in the web UI (although there doesn't appear to be a way of setting a value for the label, even when logged in as a valid user).
But when I come to try and apply that label via a REST API call, I get the error message:
"Applying label "TryBot-Result": 1 is restricted"
That same user can successfully apply the Code-Review label, just not my custom label.
I've had what I would consider a good Google on this subject, but not made any progress towards the answer.
Please can someone help point me in the right direction? Where is this restriction defined/configured? Or am I holding this entirely wrong?
If it is relevant, the project I am looking to configure is on
gerrithub.io.
Many thanks
Paul