Repository navigation
fix: drop the unsupported paginate flag from the pin lookups - #12
Merged
Merged
Conversation
|
🔍 OpenCodeReview found 1 issue(s) in this PR.
|
| # cross-repo PRs, and PRs against a non-default base never constrain | ||
| # this run even when their branch names collide with the namespace. | ||
| old_prs="$(gh pr list --state open --paginate \ | ||
| old_prs="$(gh pr list --state open -L 100 \ |
There was a problem hiding this comment.
-L 100 is a hard cap: if the repository has more than 100 open PRs, pin PRs beyond the first page are silently omitted from the superseding logic, and the script proceeds as if none exist. Unlike the previous --paginate behavior, this failure is silent (the command succeeds, so the || exit guard does not fire). Consider documenting the cap or using a higher limit if the runner's gh supports it.
Suggestion:
Suggested change
| old_prs="$(gh pr list --state open -L 100 \ | |
| # -L 100 assumes fewer than 100 open PRs in the repo; beyond that, | |
| # stale pin PRs would be silently skipped (runner's gh rejects --paginate). | |
| old_prs="$(gh pr list --state open -L 100 \ |
erubboli
approved these changes
Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The v0.1.1 release pin-PR step failed twice with 'failed to list existing pin PRs': the runner's gh build rejects --paginate on gh pr list (unknown flag -> usage dump -> the fail-closed canary fired). This code path never ran in CI before - the v0.1.0 pin PR was opened manually after GH013.
Replaces the three paginated lookups with -L 100 (one GraphQL window, still list-independent for this repo's PR volume). Suite 159 assertions green, shellcheck clean.