Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add tools for sub-issue endpoint#470

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
martinnormark wants to merge6 commits intogithub:main
base:main
Choose a base branch
Loading
frommartinnormark:feat/sub-issues

Conversation

martinnormark
Copy link

Closes:#154

Note that I am calling the GitHub REST API, due to sub-issues not yet ingo-github - however, it was merged ingoogle/go-github#3580 so I'm happy to let this wait until they cut a new release and refactor.

Example use

I have tested the tools with a test repo here:https://github.com/martinnormark/gh-mcp-tests

Specifically I created 3 issues, wheremartinnormark/gh-mcp-tests#1 is the parent. You can look at the history there to see how sub-issues were added, removed, then added again.

It gracefully handled permission error due to token grants:
Screenshot 2025-06-04 at 00 08 30

Fixed the token and asked to retry:
Screenshot 2025-06-04 at 00 11 01

Asking to list sub-issues:
Screenshot 2025-06-04 at 00 11 26

Removing a sub-issue from the parent, not mentioning the parent:
Screenshot 2025-06-04 at 00 11 56

Adding it back again:
Screenshot 2025-06-04 at 00 12 47

Asking to re-order:
Screenshot 2025-06-04 at 00 13 05

@CopilotCopilotAI review requested due to automatic review settingsJune 3, 2025 22:19
@martinnormarkmartinnormark requested a review froma team as acode ownerJune 3, 2025 22:19
Copy link
Contributor

@CopilotCopilotAI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Pull Request Overview

This PR adds new tooling endpoints for handling sub-issues within GitHub issues by extending the current server toolset. The changes include the introduction of a read tool for listing sub-issues and write tools for adding, removing, and reprioritizing sub-issues.

Comments suppressed due to low confidence (2)

pkg/github/tools.go:49

  • [nitpick] Consider adding a brief comment explaining the intended usage of the ListSubIssues tool, similar to existing documentation for other endpoints.
toolsets.NewServerTool(ListSubIssues(getClient, t))

pkg/github/tools.go:56

  • [nitpick] Consider adding inline comments for the new sub-issue write tools to clearly describe their behavior and expected input, ensuring consistency with the rest of the codebase.
toolsets.NewServerTool(AddSubIssue(getClient, t))

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

Copilot code reviewCopilotCopilot left review comments

At least 1 approving review is required to merge this pull request.

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Sub-issue endpoint
1 participant
@martinnormark

[8]ページ先頭

©2009-2025 Movatter.jp