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('Code-Review', _) | T], R) :- gerrit:change_branch(B), regex_matches('refs/heads/XYZ/hotfix/*', B), remove_verified_category(T, R), !.
remove_verified_category([H|T], [H|R]) :- remove_verified_category(T, R).
Hi,My current scenario is, all hotfix check-ins flow from mainline to hotfix branches.On mainline, they have +2 and +1 requirement but when they are cherry-picked do not enforce +2 requirement.To do so, I added 'rules.pl' under 'All-Projects' ---> branch 'refs/meta/config'My rules.pl contains followingsubmit_rule(S) :-
gerrit:default_submit(X),
X =.. [submit | Ls],
remove_verified_category(Ls, R),
S =.. [submit | R].
remove_verified_category([], []).
remove_verified_category([label('Code-Review', _) | T], R) :- gerrit:change_branch(B), regex_matches('refs/heads/XYZ/hotfix/*', B), remove_verified_category(T, R), !.
remove_verified_category([H|T], [H|R]) :- remove_verified_category(T, R).
Though having this rules.pl under 'All-Projects' , cherry picking to hotfix branches still requires +2 ('Code-Review').My question is , How can I write a global rules.pl for all the branches for all the projects?
Also, having new rules.pl will require restart of gerrit to take effect?
Appreciate any help with this.Thanks,Anand
--
--
To unsubscribe, email repo-discuss...@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...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.