Add issue dependency support (blocked by/blocking relationships) - Fixes #950#1939
Open
drtootsie wants to merge 3 commits intogithub:mainfrom
Open
Add issue dependency support (blocked by/blocking relationships) - Fixes #950#1939drtootsie wants to merge 3 commits intogithub:mainfrom
drtootsie wants to merge 3 commits intogithub:mainfrom
Conversation
- Add 'get_dependencies' enum value to IssueRead tool method parameter
- Implement GetIssueDependencies function to fetch dependency relationships
- Support both 'depends_on' (blocked by) and 'blocking' relationships
- Use GitHub REST API /repos/{owner}/{repo}/issues/{number}/dependencies endpoint
Addresses github#950 (read functionality)
- Implement DependencyWrite tool with 'add' and 'remove' methods
- Add AddIssueDependency function to create dependency relationships
- Add RemoveIssueDependency function to delete dependency relationships
- Register DependencyWrite tool in AllTools list
- Support POST /repos/{owner}/{repo}/issues/{number}/dependencies endpoint
- Support DELETE /repos/{owner}/{repo}/issues/{number}/dependencies/{id} endpoint
Addresses github#950 (write functionality)
- Remove unused cache parameter from GetIssueDependencies - Update tool snapshots for issue_read tool with new get_dependencies method - Regenerate README.md with updated tool documentation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
|
Duplicate of #1927 |
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
This PR implements issue dependency support requested in #950, adding the ability to read and write "blocked by" and "blocking" relationships between GitHub issues.
Changes
Read Functionality
get_dependenciesmethod toIssueReadtoolGetIssueDependencies()function to fetch issue dependenciesIssueDependencyandIssueDependenciesdata structuresWrite Functionality
DependencyWritetool withaddandremovemethodsAddIssueDependency()function to create dependency relationshipsRemoveIssueDependency()function to delete dependency relationshipsDependencyWritein the AllTools listImplementation Details
The implementation uses custom API requests via
client.NewRequest()andclient.Do()since the go-github library doesn't have built-in support for the issue dependencies endpoints:GET /repos/{owner}/{repo}/issues/{number}/dependencies- List dependenciesPOST /repos/{owner}/{repo}/issues/{number}/dependencies- Add dependencyDELETE /repos/{owner}/{repo}/issues/{number}/dependencies/{id}- Remove dependencyQuality Assurance
✅ All tests passing
✅ Linter passing (0 issues)
✅ Documentation generated
✅ Tool snapshots updated
Related Issues
Closes #950
Checklist
SubIssueWrite)