From c974eed1a03fdcb106a257996e2cfdb30efd7c46 Mon Sep 17 00:00:00 2001 From: Zoran Regvart Date: Mon, 2 Dec 2024 15:52:58 +0100 Subject: [PATCH] Search only merged pull requests As PRs get rebased, commits from a merged pull request will end up in an unmerged pull requests, we don't want to list files from unmerged pull requests. --- .tekton/tasks/task-switchboard.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}"