Skip to content

Add atomic parent issue creation - #3134

Draft
zwick wants to merge 5 commits into
mainfrom
zwick-atomic-sub-issue-creation
Draft

Add atomic parent issue creation#3134
zwick wants to merge 5 commits into
mainfrom
zwick-atomic-sub-issue-creation

Conversation

@zwick

@zwickzwick commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds optional same- or cross-repository parent attachment to issue creation through GitHub's existing atomic GraphQL createIssue capability.

Why

The MCP tools previously required separate create and parent-attachment calls, leaving a partial-failure window even though CreateIssueInput.parentIssueId already supports atomic creation.

What changed

  • Add parent_issue_number with optional paired parent_owner and parent_repo inputs; omit both parent repository coordinates to use the new issue's repository.
  • Resolve user-facing identifiers before sending the parent, labels, and other supported fields in one createIssue mutation, with no attachment fallback.
  • Keep the existing REST path for unparented creation; parented creation rejects issue_fields rather than broadening this focused change.

MCP impact

  • No tool or API changes
  • Tool schema or behavior changed — parented creation now uses one GraphQL mutation; unparented creation retains its existing REST behavior.
  • New tool added

Prompts tested (tool changes only)

Security / limits

  • No security or limits impact
  • Auth / permissions considered — GitHub validates access to both explicitly named repositories, and GraphQL permission or compatibility errors surface without a non-atomic fallback.
  • Data exposure, filtering, or token/size limits considered

Tool renaming

  • I am renaming tools as part of this PR (e.g. a part of a consolidation effort)
    • I have added the new tool aliases in deprecated_tool_aliases.go
  • I am not renaming tools as part of this PR

Lint & tests

  • Linted locally with ./script/lint
  • Tested locally with ./script/test

Docs

  • Not needed
  • Updated (README / docs / examples)

zwickand others added 3 commits August 21, 2026 13:35
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: f71d9868-eef8-4fb0-84c6-df7c9a6a0ade
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: f71d9868-eef8-4fb0-84c6-df7c9a6a0ade
@zwickzwick self-assigned this Aug 21, 2026
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: f71d9868-eef8-4fb0-84c6-df7c9a6a0ade
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: f71d9868-eef8-4fb0-84c6-df7c9a6a0ade
Sign up for freeto 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.

1 participant

@zwick