Skip to content

Commit

Permalink
chore: don't run e2e-test for draft pr
Browse files Browse the repository at this point in the history
Signed-off-by: Jing Qi <[email protected]>
  • Loading branch information
jinqi7 committed Oct 29, 2024
1 parent 5db32c5 commit 714af11
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .tekton/release-service-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ metadata:
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
pipelinesascode.tekton.dev/max-keep-runs: "3"
pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch == "main"
pipelinesascode.tekton.dev/on-cel-expression: |
event == "pull_request"
&& target_branch == "main"
&& ( !has(body.pull_request) || !body.pull_request.draft)
&& files.all.exists(x, !x.matches('^(?:.github)/|\\.md$|^(?:.*/)?(?:\\.gitignore|PROJECT|LICENSE|.sonarcloud.properties|.gitlint|.dockerignore)$'))
creationTimestamp: null
labels:
appstudio.openshift.io/application: release-service
Expand Down

0 comments on commit 714af11

Please sign in to comment.