Fix syntax of submit type rules in Prolog cookbook

The final '.' is required.

Change-Id: I025efb062f5b81226b94352ebffeb6218a54f78b
This commit is contained in:
Dave Borowitz 2015-12-16 15:41:52 -05:00
parent d85051ab5f
commit 6ba7976580

View File

@ -999,7 +999,7 @@ default submit type as defined on the project settings page.
submit_type(fast_forward_only) :-
gerrit:change_branch(B), regex_matches('refs/heads/stable.*', B),
!.
submit_type(T) :- gerrit:project_default_submit_type(T)
submit_type(T) :- gerrit:project_default_submit_type(T).
----
The first `submit_type` predicate defines the `Fast Forward Only` submit type
@ -1019,7 +1019,7 @@ submit_type(fast_forward_only) :-
gerrit:commit_delta('(?<!\.txt)$'),
gerrit:change_branch(B), regex_matches('refs/heads/stable.*', B),
!.
submit_type(T) :- gerrit:project_default_submit_type(T)
submit_type(T) :- gerrit:project_default_submit_type(T).
----
The `gerrit:commit_delta('(?<!\.txt)$')` succeeds if the change contains a file