Add issue dependency support (blocked by/blocking relationships) - Fixes #950 #1939
+255
−3
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)