Skip to content

Commit 306fd47

Browse files
committed
Update custom param doc with proper syntax for filter (#1355)
1 parent ac62a5f commit 306fd47

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

docs/content/docs/guide/repositorycrd.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -194,10 +194,7 @@ spec:
194194
params:
195195
- name: company
196196
value: "My Beautiful Company"
197-
filter:
198-
- name: event
199-
value: |
200-
pac.event_type == "pull_request"
197+
filter: pac.event_type == "pull_request"
201198
```
202199

203200
The `pac` prefix contains all the values as set by default in the templates
@@ -224,10 +221,7 @@ spec:
224221
params:
225222
- name: company
226223
value: "My Beautiful Company"
227-
filter:
228-
- name: event
229-
value: |
230-
body.action == "opened" && pac.event_type == "pull_request"
224+
filter: body.action == "opened" && pac.event_type == "pull_request"
231225
```
232226

233227
The payload of the event contains much more information that can be used with

0 commit comments

Comments
 (0)