Skip to content

fix: drop the unsupported paginate flag from the pin lookups - #12

Merged
nullPointerEnjoyer merged 1 commit into
mainfrom
fix/pin-list-pagination
Nov 24, 2026
Merged

nullPointerEnjoyer merged 1 commit into
mainfrom
fix/pin-list-pagination

Conversation

@nullPointerEnjoyer

Copy link
Copy Markdown
Collaborator

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.

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

🔍 OpenCodeReview found 1 issue(s) in this PR.

  • ✅ Successfully posted inline: 1 comment(s)

# 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 \

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bug · medium
-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 \

@nullPointerEnjoyer
nullPointerEnjoyer merged commit c0d7da3 into main Nov 24, 2026
22 checks passed
@nullPointerEnjoyer
nullPointerEnjoyer deleted the fix/pin-list-pagination branch November 24, 2026 15:55
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