-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Add issue dependency tools and issue_read get_parent #2726
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
zwick
wants to merge
3
commits into
main
Choose a base branch
from
zwick/issue-dependencies-mcp
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
49 changes: 49 additions & 0 deletions
49
pkg/github/__toolsnaps__/issue_dependency_read_ff_issue_dependencies.snap
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| { | ||
| "annotations": { | ||
| "readOnlyHint": true, | ||
| "title": "Read issue dependencies" | ||
| }, | ||
| "description": "Read an issue's dependency relationships in a GitHub repository: the issues that block it (blocked_by) or the issues it blocks (blocking).", | ||
| "inputSchema": { | ||
| "properties": { | ||
| "after": { | ||
| "description": "Cursor for pagination. Use the cursor from the previous response.", | ||
| "type": "string" | ||
| }, | ||
| "issue_number": { | ||
| "description": "The number of the issue", | ||
| "type": "number" | ||
| }, | ||
| "method": { | ||
| "description": "The read operation to perform on a single issue's dependencies.\nOptions are:\n1. get_blocked_by - List the issues that block this issue (this issue is blocked by them).\n2. get_blocking - List the issues that this issue blocks.\n", | ||
| "enum": [ | ||
| "get_blocked_by", | ||
| "get_blocking" | ||
| ], | ||
| "type": "string" | ||
| }, | ||
| "owner": { | ||
| "description": "The owner of the repository", | ||
| "type": "string" | ||
| }, | ||
| "perPage": { | ||
| "description": "Results per page for pagination (min 1, max 100)", | ||
| "maximum": 100, | ||
| "minimum": 1, | ||
| "type": "number" | ||
| }, | ||
| "repo": { | ||
| "description": "The name of the repository", | ||
| "type": "string" | ||
| } | ||
| }, | ||
| "required": [ | ||
| "method", | ||
| "owner", | ||
| "repo", | ||
| "issue_number" | ||
| ], | ||
| "type": "object" | ||
| }, | ||
| "name": "issue_dependency_read" | ||
| } |
60 changes: 60 additions & 0 deletions
60
pkg/github/__toolsnaps__/issue_dependency_write_ff_issue_dependencies.snap
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| { | ||
| "annotations": { | ||
| "title": "Change issue dependency" | ||
| }, | ||
| "description": "Add or remove an issue dependency relationship in a GitHub repository. Use type 'blocked_by' to record that the subject issue is blocked by a related issue, or type 'blocking' to record that the subject issue blocks a related issue. The related issue defaults to the same repository as the subject unless related_owner/related_repo are provided.", | ||
| "inputSchema": { | ||
| "properties": { | ||
| "issue_number": { | ||
| "description": "The number of the subject issue", | ||
| "type": "number" | ||
| }, | ||
| "method": { | ||
| "description": "The action to perform.\nOptions are:\n- 'add' - create the dependency relationship.\n- 'remove' - delete the dependency relationship.", | ||
| "enum": [ | ||
| "add", | ||
| "remove" | ||
| ], | ||
| "type": "string" | ||
| }, | ||
| "owner": { | ||
| "description": "The owner of the subject issue's repository", | ||
| "type": "string" | ||
| }, | ||
| "related_issue_number": { | ||
| "description": "The number of the related issue to link or unlink", | ||
| "type": "number" | ||
| }, | ||
| "related_owner": { | ||
| "description": "The owner of the related issue's repository. Defaults to 'owner' when omitted.", | ||
| "type": "string" | ||
| }, | ||
| "related_repo": { | ||
| "description": "The name of the related issue's repository. Defaults to 'repo' when omitted.", | ||
| "type": "string" | ||
| }, | ||
| "repo": { | ||
| "description": "The name of the subject issue's repository", | ||
| "type": "string" | ||
| }, | ||
| "type": { | ||
| "description": "The relationship direction relative to the subject issue.\nOptions are:\n- 'blocked_by' - the subject issue is blocked by the related issue.\n- 'blocking' - the subject issue blocks the related issue.", | ||
| "enum": [ | ||
| "blocked_by", | ||
| "blocking" | ||
| ], | ||
| "type": "string" | ||
| } | ||
| }, | ||
| "required": [ | ||
| "method", | ||
| "type", | ||
| "owner", | ||
| "repo", | ||
| "issue_number", | ||
| "related_issue_number" | ||
| ], | ||
| "type": "object" | ||
| }, | ||
| "name": "issue_dependency_write" | ||
| } |
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.