Skip to content

ci: fix PR lookup in cleanup-ci-branches workflow - #3584

Merged
almaslennikov merged 1 commit into
Mellanox:masterfrom
rollandf:branchclean
Oct 27, 2026
Merged

almaslennikov merged 1 commit into
Mellanox:masterfrom
rollandf:branchclean

Conversation

@rollandf

Copy link
Copy Markdown
Member

The PR lookup passed --arg to gh api, which is not a supported flag. Every call failed, and because stderr was discarded and the exit code ignored, every branch was reported as "No PR found" and skipped. No branch was ever deleted.

Drop --arg and the client-side head.ref filter. The head=owner:branch query parameter already limits results to the branch, and the newest PR comes first. Stop suppressing errors so that API failures fail the job.

The PR lookup passed `--arg` to `gh api`, which is not a supported flag.
Every call failed, and because stderr was discarded and the exit code
ignored, every branch was reported as "No PR found" and skipped. No
branch was ever deleted.

Drop `--arg` and the client-side `head.ref` filter. The `head=owner:branch`
query parameter already limits results to the branch, and the newest PR
comes first. Stop suppressing errors so that API failures fail the job.

Signed-off-by: Fred Rolland <frolland@nvidia.com>
@copy-pr-bot

copy-pr-bot Bot commented Oct 26, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@greptile-apps

greptile-apps Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge.

Summary

Fixes PR lookup in .github/workflows/cleanup-ci-branches.yml.

  • The cleanup workflow checks each branch’s latest pull request.

No actionable issues found. Author rollandf explicitly intends API failures to stop the job.

Reviews (1) · Last reviewed commit: "ci: fix PR lookup in cleanup-ci-branches..." · Reviewed by Greptile

@almaslennikov
almaslennikov merged commit dd6c856 into Mellanox:master Oct 27, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants