Skip to content

fix: continue when an issue already has the maximum number of linked pull requests - #71

Merged
seyhello merged 1 commit into
mainfrom
fix/manual-reference-limit
Sep 30, 2026
Merged

seyhello merged 1 commit into
mainfrom
fix/manual-reference-limit

Conversation

@seyhello

@seyhello seyhello commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Part of ... links are created with addCloseIssueReferences. GitHub allows 10 manual links per issue, and the 11th fails the whole action with Issue exceeds manual reference limit.
  • Skip issues that are already linked, and when an issue is already at the limit log a warning and continue. The linking and estimate check reads the pull request body, so the missing sidebar entry does not fail those checks.

Depends on

Merge #70 first. That PR stops the action from moving a closed pull request back to "Pull Request" on the team board. This change does not include that fix.

Test plan

  • Open a pull request whose body says Part of an issue that already has 10 manually linked pull requests. The action warns and still finishes.
  • A pull request that links an issue under the limit still adds the Development sidebar link.
  • Re-running the action on an already linked issue does not call the link mutation again.

Made with Cursor

…pull requests

GitHub rejects the 11th manual link with "Issue exceeds manual reference limit", which failed the whole toolkit run. The sidebar link is optional; the linking check reads the pull request body directly.

Co-authored-by: Cursor <cursoragent@cursor.com>
@apify-service-account apify-service-account added tested Temporary label used only programatically for some analytics. t-infra Issues with this label are in the ownership of the infrastructure team. labels Sep 30, 2026
@seyhello
seyhello merged commit a1ccac3 into main Sep 30, 2026
3 of 9 checks passed
@seyhello
seyhello deleted the fix/manual-reference-limit branch September 30, 2026 12:11
@fnesveda

fnesveda commented Oct 5, 2026

Copy link
Copy Markdown
Member

Thanks for the fix guys! I didn't realize there is this limit and that we could exceed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

t-infra Issues with this label are in the ownership of the infrastructure team. tested Temporary label used only programatically for some analytics.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PR toolkit crashes when you attempt to link an issue that already has 10 PRs linked to it

4 participants