Skip to content

Commit

Permalink
Search only merged pull requests
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
zregvart committed Dec 2, 2024
1 parent af54576 commit c974eed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .tekton/tasks/task-switchboard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit c974eed

Please sign in to comment.