cli/pkg/cmd/issue/shared
Kynan Ware 02457482a5 Apply deferred update mutations in parallel for gh issue edit
The Issues 2.0 mutations (issue type, parent set/remove, sub-issues,
blocked-by, blocking) are deferred until after the main UpdateIssue
because they target IDs that the standard mutation does not handle.

Move them behind a shared api.DeferredUpdateIssue orchestrator that
fans them out in parallel and joins all errors so a single failure
does not abort the rest.

editRun no longer carries its own applyEditParent / applyEditSubIssues
/ applyEditRelationships helpers; the per-issue goroutine resolves
refs to node IDs via a small deferredUpdateIssueOptions builder, then
hands the populated DeferredUpdateIssueOptions to api.DeferredUpdateIssue.

Also moves ResolveIssueRef and ResolveIssueTypeName from the deleted
resolve.go into lookup.go.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-12 19:38:55 -06:00
..
display.go Merge pull request #10737 from cli/andyfeller/muted-text-part2-github-cli-833 2025-04-08 16:59:36 -04:00
lookup.go Apply deferred update mutations in parallel for gh issue edit 2026-05-12 19:38:55 -06:00
lookup_test.go Remove old issue lookup funcs 2025-04-17 15:27:40 +02:00