fix: move all linked issues on PR merge (multi-issue + Task List) - #70
Merged
Conversation
The action only moved the first issue linked to a PR (rel[0]) and read only the Tech Issues relation, so a PR fixing multiple issues left the rest stuck. - resolveIssues(): read every linked issue across the Tech Issues + Task List relations - per-issue gate: advance an issue only when all of its own PRs are merged/closed - per-database status names (Tech Issues -> For QA, Task List -> Ready For Review) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011L6fsCh8SQW8eHvQWJAcZz
vatsalpatel
marked this pull request as ready for review
July 24, 2026 06:40
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.
Fixes: a PR linked to multiple issues only moved the first one on merge — the rest had to be moved by hand.
Notion issue: https://app.notion.com/p/tutero/Notion-issue-status-does-not-update-when-multiple-issues-are-linked-3a7bfd2f80ba80b08aaed61603adab8b
The bug
run()resolved only the first linked issue (issueIdFromRow → rel[0]) and read only the🐛 Tech Issuesrelation. A PR fixing N issues advanced issue #1 and silently left the others. Reproduced ontutoring-app#1451, whose PR row links 2 Tech Issues — the second ("Simple Change to SUFS invoices…") was skipped.The fix —
src/config.ts,src/run.tsresolveIssues()— read every linked issue across both relations (🐛 Tech Issues,✅ Task List).For QA; Task List merge →Ready For Review(Task List has no "For QA").Verified
resolveIssuesreturns all issues across both relations with per-DB status (__tests__/resolve.test.ts).dist/: PR A (→ 2 issues) + PR B (→ issue 1). Merging A → issue 2For QA, issue 1 held (B open); merging B → issue 1For QA.🤖 Generated with Claude Code