Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- submit_filter(In,Out) :-
- In =.. [submit | Ls],
- add_non_author_approval(Ls, R),
- Out =.. [submit | R].
- add_non_author_approval(S1, S2) :-
- gerrit:commit_author(A),
- gerrit:commit_label(label('Code-Review', 2), R),
- R \= A, !,
- S2 = [label('Non-Author-Code-Review', ok(R)) | S1].
- add_non_author_approval(S1, [label('Non-Author-Code-Review', need(_)) | S1]).
Add Comment
Please, Sign In to add comment