Repository navigation
Add planning statuses to issues - #3958
Open
MichelleGrounds wants to merge 14 commits into
Open
MichelleGrounds wants to merge 14 commits into
MichelleGrounds wants to merge 14 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
Contributor
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>
| publicRepositoryWriteScopeAccess(), | ||
| func(ctx context.Context, deps ToolDependencies, _ *mcp.CallToolRequest, args IssueStatusInput) (*mcp.CallToolResult, *IssueStatusUpdateOutput, error) { | ||
| // This is a caller-supplied confirmation policy, not proof that a trusted UI prompted the user. | ||
| if slices.Contains(issueClosingStatusNames, args.Status) && !args.ConfirmClose { |
| flags := deps.GetFlags(ctx) | ||
|
|
||
| issue, resp, err := client.Issues.Get(ctx, owner, repo, issueNumber) | ||
| req, err := client.NewRequest(ctx, http.MethodGet, fmt.Sprintf("repos/%s/%s/issues/%d", owner, repo, issueNumber), nil) |
| }, | ||
| publicRepositoryWriteScopeAccess(), | ||
| func(ctx context.Context, deps ToolDependencies, _ *mcp.CallToolRequest, args IssueStatusInput) (*mcp.CallToolResult, *IssueStatusUpdateOutput, error) { | ||
| // This is a caller-supplied confirmation policy, not proof that a trusted UI prompted the user. |
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.


Summary
Expose GitHub issue planning statuses through the MCP server.
Why
Make issue planning workflows available to MCP clients.
No linked issue.
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