Skip to content

Overwrite existing parent on gh issue edit --add-sub-issue - #13413

Merged
BagToad merged 4 commits into
kw/issues-2.0-rename-allowedfrom
kw/issues-2.0-overwrite-parent-on-add-sub-issue
Jun 4, 2026
Merged

BagToad merged 4 commits into
kw/issues-2.0-rename-allowedfrom
kw/issues-2.0-overwrite-parent-on-add-sub-issue

Conversation

@BagToad

@BagToad BagToad commented May 13, 2026

Copy link
Copy Markdown
Member

Fix the Sub issue may only have one parent 422 that surfaces when --add-sub-issue is handed a candidate that already belongs to another parent. Pass replaceParent: true so the take-over is silent.

Stacked on top of #13412 (which is on top of #13411).

A sub-issue can have only one parent, so when --add-sub-issue is given
a candidate that already belongs to another parent the addSubIssue
mutation 422s with "Sub issue may only have one parent". Pass
replaceParent: true on this path so the take-over is silent.
@BagToad
BagToad requested a review from a team as a code owner May 13, 2026 03:36
@BagToad
BagToad requested review from babakks and removed request for a team May 13, 2026 03:36
Cover the new flag surface end to end against a real GitHub repo:
issue type set/remove on create and edit, parent set/remove on create
and edit, sub-issue add/remove (including the silent take-over of an
existing parent), blocked-by/blocking add/remove on create and edit,
list filtering by type, and the new non-tty view fields. Live in a
dedicated TestIssues2_0 suite so they're easy to run in isolation.
babakks and others added 2 commits May 26, 2026 18:46
Signed-off-by: Babak K. Shandiz <babakks@github.com>
Add acceptance tests for non-interactive Issues 2.0 flows
@BagToad
BagToad merged commit b085033 into kw/issues-2.0-rename-allowed Jun 4, 2026
@BagToad
BagToad deleted the kw/issues-2.0-overwrite-parent-on-add-sub-issue branch June 4, 2026 00:17
@coderabbitai coderabbitai Bot mentioned this pull request Aug 10, 2026
7 tasks
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