Skip to content

Commit

Permalink
Merge pull request #626 from galasa-dev/filter-event-listeners
Browse files Browse the repository at this point in the history
Make event listeners more specific to remove need for dummy pipelines
  • Loading branch information
jadecarino authored Oct 30, 2024
2 parents df16781 + 9128cb3 commit 28a8ef3
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 727 deletions.
6 changes: 6 additions & 0 deletions pipelines/event-listeners/main-builds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ spec:
params:
- name: "filter"
value: "body.ref in ['refs/heads/main']"
- name: "CEL filter: only when the workflow was for the automation repository"
ref:
name: "cel"
params:
- name: "filter"
value: "body.repository.name in ['automation']"

bindings:
- name: git-repository-name
Expand Down
6 changes: 6 additions & 0 deletions pipelines/event-listeners/pr-builds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ spec:
params:
- name: "filter"
value: "body.action in ['opened', 'reopened', 'synchronize']"
- name: "CEL filter: only when the workflow was for the automation or cli repositories"
ref:
name: "cel"
params:
- name: "filter"
value: "body.repository.name in ['automation','cli']"
bindings:
- name: git-repository-name
value: $(body.pull_request.head.repo.name)
Expand Down
6 changes: 6 additions & 0 deletions pipelines/event-listeners/pr-reviewed-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ spec:
params:
- name: "filter"
value: "body.review.body in ['Approved for building', 'approved for building']"
- name: "CEL filter: only when the workflow was for the automation or cli repositories"
ref:
name: "cel"
params:
- name: "filter"
value: "body.repository.name in ['automation','cli']"
bindings:
- name: git-repository-name
value: $(body.pull_request.head.repo.name)
Expand Down
Loading

0 comments on commit 28a8ef3

Please sign in to comment.