Fix syntax of submit type rules in Prolog cookbook
The final '.' is required. Change-Id: I025efb062f5b81226b94352ebffeb6218a54f78b
This commit is contained in:
parent
d85051ab5f
commit
6ba7976580
@ -999,7 +999,7 @@ default submit type as defined on the project settings page.
|
|||||||
submit_type(fast_forward_only) :-
|
submit_type(fast_forward_only) :-
|
||||||
gerrit:change_branch(B), regex_matches('refs/heads/stable.*', B),
|
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
|
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:commit_delta('(?<!\.txt)$'),
|
||||||
gerrit:change_branch(B), regex_matches('refs/heads/stable.*', B),
|
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
|
The `gerrit:commit_delta('(?<!\.txt)$')` succeeds if the change contains a file
|
||||||
|
Loading…
Reference in New Issue
Block a user