Skip to content

Commit

Permalink
Merge pull request #595 from jinqi7/draft_pr
Browse files Browse the repository at this point in the history
chore: don't run e2e-test for draft pr
  • Loading branch information
jinqi7 authored Oct 29, 2024
2 parents 5db32c5 + 714af11 commit 89942ee
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 89942ee

Please sign in to comment.