Use submit_filter instead of submit_rule
A filter is required for inheritance.
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/rules.pl b/rules.pl
index afc6eeb..9f0918b 100644
--- a/rules.pl
+++ b/rules.pl
@@ -1,6 +1,5 @@
-submit_rule(S) :-
- gerrit:default_submit(D),
- D =.. [submit | Ds],
+submit_filter(In,S) :-
+ In =.. [submit | Ds],
findall(U, gerrit:commit_label(label('Code-Review', 2), U), Approvers),
gerrit_owners:add_owner_approval(Approvers, Ds, A),
S =.. [submit | A].