deadman96385

Untitled

Aug 25th, 2016
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. submit_filter(In,Out) :-
  2. In =.. [submit | Ls],
  3. add_non_author_approval(Ls, R),
  4. Out =.. [submit | R].
  5.  
  6. add_non_author_approval(S1, S2) :-
  7. gerrit:commit_author(A),
  8. gerrit:commit_label(label('Code-Review', 2), R),
  9. R \= A, !,
  10. S2 = [label('Non-Author-Code-Review', ok(R)) | S1].
  11.  
  12.  
  13. add_non_author_approval(S1, [label('Non-Author-Code-Review', need(_)) | S1]).
Add Comment
Please, Sign In to add comment