Repository navigation
Add planning statuses to issues - #3958
MichelleGrounds wants to merge 19 commits into
Conversation
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Auto-generated by license-check workflow
Auto-generated by license-check workflow
There was a problem hiding this comment.
🟡 Changes recommended
Unvalidated repository coordinates can redirect authenticated PATCH and POST requests to unintended API paths, creating a critical security risk.
3 open issues
What changed in this PR
Adds issue planning status support to the GitHub MCP Server, enabling clients to read statuses, set an initial status, and update existing issues.
Changes:
- Adds
update_issue_status, including confirmation for closing statuses and duplicate-issue handling. - Extends issue creation tools and the creation form with initial status selection.
- Updates documentation, bundled skills, schemas, tests, and license inventories.
| File | Description |
|---|---|
ui/src/apps/issue-write/App.tsx |
Adds initial status selection to the creation form. |
third-party-licenses.windows.md |
Corrects a dependency license link. |
third-party-licenses.linux.md |
Corrects a dependency license link. |
third-party-licenses.darwin.md |
Splits license inventories by architecture. |
README.md |
Documents status workflows and tool parameters. |
pkg/skills/catalog/tools.go |
Adds status updates to the triage skill’s optional tools. |
pkg/skills/catalog/skills/issue-backlog-triage/SKILL.md |
Explains status filtering and transitions. |
pkg/skills/catalog/skills/issue-authoring/SKILL.md |
Documents initial status and partial-write handling. |
pkg/http/server_test.go |
Checks search descriptions include status guidance. |
pkg/github/typed_issue_outputs_test.go |
Updates typed issue expectations and feature selection. |
pkg/github/typed_consolidated_issue_outputs_test.go |
Tests status availability, contracts, reads, and creation. |
pkg/github/typed_consolidated_issue_enrichment_test.go |
Includes status in enriched output expectations. |
pkg/github/tools.go |
Registers update_issue_status. |
pkg/github/search_semantic_test.go |
Updates search description assertions. |
pkg/github/issues.go |
Integrates status reading, creation, and search guidance. |
pkg/github/issues_test.go |
Tests status schema and form routing. |
pkg/github/issues_granular.go |
Supports status in granular issue creation. |
pkg/github/issue_status.go |
Implements status validation, updates, and API helpers. |
pkg/github/granular_tools_test.go |
Tests status transitions, validation, and unapplied statuses. |
pkg/github/granular_issue_types.go |
Adds status to granular creation inputs. |
pkg/github/consolidated_issue_types.go |
Adds status to consolidated inputs and outputs. |
pkg/github/__toolsnaps__/update_issue_status.snap |
Records the new tool contract. |
pkg/github/__toolsnaps__/search_issues.snap |
Records status-filter guidance. |
pkg/github/__toolsnaps__/issue_write.snap |
Records the initial status parameter. |
pkg/github/__toolsnaps__/issue_read.snap |
Records the nullable status output. |
pkg/github/__toolsnaps__/create_issue.snap |
Records granular creation’s status parameter. |
docs/feature-flags.md |
Documents status for granular creation. |
Review effort: Balanced (adaptive)
Validate repository path segments, allow public-repo scope access, and report when requested creation status is not applied. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Validate and escape owner and repo in getIssue before building the REST path, so crafted coordinates cannot change the requested URL. Remove confirm_close from update_issue_status and set DestructiveHint to false, matching update_issue_state and issue_write, which close issues without a server-side confirmation step. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Auto-generated by license-check workflow
Auto-generated by license-check workflow
| if err != nil { | ||
| return ghErrors.NewGitHubGraphQLErrorResponse(ctx, "failed to resolve planning status", err), nil, nil | ||
| } | ||
| input.StatusID = &statusID |
There was a problem hiding this comment.
P1: Check the status GitHub actually applied to the sub-issue. GitHub documents on CreateIssueInput.statusId that if the caller lacks permission to set the status, it ignores the field and creates the issue in Backlog. This mutation only reads the ID and URL, so a caller requesting In review gets an unqualified success. When a status is requested, please select the created issue’s status and report any mismatch with the issue URL. Keep the existing mutation selection for calls without a status so they still work on older schemas.
| } | ||
|
|
||
| if err := unappliedIssueStatusError(status, issue); err != nil { | ||
| return ghErrors.NewGitHubAPIErrorResponse(ctx, "issue created but requested status was not applied", resp, err), nil, nil |
There was a problem hiding this comment.
P2: Don’t leave Create enabled after the issue already exists. This error follows a successful POST. The issue-write form handles result.isError by displaying the text and re-enabling Create. If the user changes the status and submits again, it creates a second issue. Please return the created issue’s ID and URL with a machine-readable status warning, and have the form show the existing issue and warning instead of offering another create.


Summary
Expose GitHub issue planning statuses through the MCP server.
Why
Make issue planning workflows available to MCP clients.
Fixes #4004.
What changed
MCP impact
update_issue_status.Prompts tested (tool changes only)
Security / limits
Tool renaming
deprecated_tool_aliases.goLint & tests
./script/lint./script/testDocs
Skills