diff --git a/.tekton/tasks/task-switchboard.yaml b/.tekton/tasks/task-switchboard.yaml index b4cb4a2495..99eaa04eec 100644 --- a/.tekton/tasks/task-switchboard.yaml +++ b/.tekton/tasks/task-switchboard.yaml @@ -46,7 +46,7 @@ spec: ec opa check --v1-compatible "${rules}" - pr_number="$(gh search prs --repo konflux-ci/build-definitions "$(params.revision)" --json number --jq '.[].number')" + pr_number="$(gh search prs --repo konflux-ci/build-definitions "$(params.revision)" --merged --json number --jq '.[].number')" echo "Determined pull request number ${pr_number}"