rules.pl: back to reject for DO NOT SUBMIT
diff --git a/rules.pl b/rules.pl index 3aed160..88efe81 100644 --- a/rules.pl +++ b/rules.pl
@@ -1,6 +1,5 @@ % We don't send email if the commit message says DO NOT REVIEW, so don't allow submit either. % Case insensitive because the mail filter rules are. -% Using reject here so that there will be a column on the CL dashboard. submit_filter(In, Out) :- In =.. [submit | I], gerrit:commit_message_matches('[Dd][Oo][ \t\r\n]+[Nn][Oo][Tt][ \t\r\n]+[Rr][Ee][Vv][Ii][Ee][Ww]'), @@ -11,13 +10,12 @@ % Don't allow submit of DO NOT SUBMIT commit message either. % Case insensitive because DO NOT REVIEW is. -% Using need instead of reject to avoid the column on the CL dashboard. submit_filter(In, Out) :- In =.. [submit | I], gerrit:commit_message_matches('[Dd][Oo][ \t\r\n]+[Nn][Oo][Tt][ \t\r\n]+[Ss][Uu][Bb][Mm][Ii][Tt]'), !, gerrit:commit_author(Id), - Error = label('Do-Not-Submit', need(_)), + Error = label('Do-Not-Submit', reject(Id)), Out =.. [submit, Error | I]. % Otherwise, pass submit rule through.