I have a project which inherits the standard Code-Review and Verified labels. On one specific branch, I don't need the Verfied label (we don't verify changes there).Is there a way of achieving this?
label.Label-Name.branchLabel’s applicable scope can be branch specific via configuration. E.g. create a label Video-Qualify on parent project and configure the branch as:[label "Video-Qualify"]branch = refs/heads/video-1.0/*branch = refs/heads/video-1.1/KinoBut that says the branches which the label applies to. I want to specify that branch that the label does _not_ apply to.Any ideas?
--ThanksMatthew
--
To unsubscribe, email repo-discuss+unsubscribe@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thank you for the suggestions.I tried the reg-ex first, but that didn't work for me. The Verified was removed from all branches, not just the one I wanted (though I'm sure the regex was correct),
and the UI went a bit weird. So I dropped that approach.I implemented a Prolog rule, based on your suggestion, and that worked well. For future reference, here is my rules.pl:submit_rule(S) :-gerrit:default_submit(X),X =.. [submit | Ls],remove_verified_category(Ls, R),S =.. [submit | R].remove_verified_category([], []).remove_verified_category([label('Verified', _) | T], R) :- gerrit:change_branch(B), regex_matches('refs/heads/gda-8\.22.*', B), remove_verified_category(T, R), !.remove_verified_category([H|T], [H|R]) :- remove_verified_category(T, R).Thanks!Matthew