Skip to content

Commit

Permalink
Update custom param doc with proper syntax for filter (#1355)
Browse files Browse the repository at this point in the history
  • Loading branch information
savitaashture committed Aug 1, 2023
1 parent ac62a5f commit 306fd47
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions docs/content/docs/guide/repositorycrd.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,7 @@ spec:
params:
- name: company
value: "My Beautiful Company"
filter:
- name: event
value: |
pac.event_type == "pull_request"
filter: pac.event_type == "pull_request"
```

The `pac` prefix contains all the values as set by default in the templates
Expand All @@ -224,10 +221,7 @@ spec:
params:
- name: company
value: "My Beautiful Company"
filter:
- name: event
value: |
body.action == "opened" && pac.event_type == "pull_request"
filter: body.action == "opened" && pac.event_type == "pull_request"
```

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

0 comments on commit 306fd47

Please sign in to comment.