-
Bug
-
Resolution: Done
-
Critical
-
None
-
Pipelines 1.18
-
None
Openshift Doc [1]suggests to add the filter as an array to custom parameter expansion of Repo CR:
spec: params: - name: company value: "ABC Company" filter: - name: event value: | pac.event_type == "pull_request"
However this doesn;t work and throws an error:
Error "Invalid value: "array": spec.params[0].filter in body must be of type string: "array"" for field "spec.params[0].filter".
The upstream doc [2] shows the correct way to define the filter in repository CR as a string:
{{}}
spec:
params:
- name: company
value: "My Beautiful Company"
filter: pac.event_type == "pull_request"
[2] https://pipelinesascode.com/docs/guide/customparams/#custom-parameters