Skip to content

Document add_sub_issue tool functionality #235

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
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

aryasoni98
Copy link
Contributor

Closes: #196

@aryasoni98
Copy link
Contributor Author

@juruen @SamMorrowDrums @williammartin @toby Please review my PR .

@SamMorrowDrums
Copy link
Collaborator

Thank you for your work. We have an upcoming PR that will require some changes to how tools are added to the server due to merge soon, and it will help to resolve issues with too many tools, so we appreciate your patience. We will resume merging new tools a bit faster after that, where they are a good fit.

Sub-issues is definitely a powerful thing to add and that's not lost on us.

I presume you can use your fork if you need this feature in the meantime.

@SamMorrowDrums SamMorrowDrums linked an issue Apr 14, 2025 that may be closed by this pull request
Comment on lines +30 to +89
// Add GitHub Resources
s.AddResourceTemplate(GetRepositoryResourceContent(getClient, t))
s.AddResourceTemplate(GetRepositoryResourceBranchContent(getClient, t))
s.AddResourceTemplate(GetRepositoryResourceCommitContent(getClient, t))
s.AddResourceTemplate(GetRepositoryResourceTagContent(getClient, t))
s.AddResourceTemplate(GetRepositoryResourcePrContent(getClient, t))

// Add GitHub tools - Issues
s.AddTool(GetIssue(getClient, t))
s.AddTool(SearchIssues(getClient, t))
s.AddTool(ListIssues(getClient, t))
s.AddTool(GetIssueComments(getClient, t))
s.AddTool(GetSubIssues(getClient, t))
if !readOnly {
s.AddTool(CreateIssue(getClient, t))
s.AddTool(AddIssueComment(getClient, t))
s.AddTool(UpdateIssue(getClient, t))
s.AddTool(AddSubIssue(getClient, t))
}

// Add GitHub tools - Pull Requests
s.AddTool(GetPullRequest(getClient, t))
s.AddTool(ListPullRequests(getClient, t))
s.AddTool(GetPullRequestFiles(getClient, t))
s.AddTool(GetPullRequestStatus(getClient, t))
s.AddTool(GetPullRequestComments(getClient, t))
s.AddTool(GetPullRequestReviews(getClient, t))
if !readOnly {
s.AddTool(MergePullRequest(getClient, t))
s.AddTool(UpdatePullRequestBranch(getClient, t))
s.AddTool(CreatePullRequestReview(getClient, t))
s.AddTool(CreatePullRequest(getClient, t))
s.AddTool(UpdatePullRequest(getClient, t))
s.AddTool(AddPullRequestReviewComment(getClient, t))
}

// Add GitHub tools - Repositories
s.AddTool(SearchRepositories(getClient, t))
s.AddTool(GetFileContents(getClient, t))
s.AddTool(GetCommit(getClient, t))
s.AddTool(ListCommits(getClient, t))
s.AddTool(ListBranches(getClient, t))
if !readOnly {
s.AddTool(CreateOrUpdateFile(getClient, t))
s.AddTool(CreateRepository(getClient, t))
s.AddTool(ForkRepository(getClient, t))
s.AddTool(CreateBranch(getClient, t))
s.AddTool(PushFiles(getClient, t))
}

// Add GitHub tools - Search
s.AddTool(SearchCode(getClient, t))
s.AddTool(SearchUsers(getClient, t))

// Add GitHub tools - Users
s.AddTool(GetMe(getClient, t))

// Add GitHub tools - Code Scanning
s.AddTool(GetCodeScanningAlert(getClient, t))
s.AddTool(ListCodeScanningAlerts(getClient, t))
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think your merge was bad here unfortunately, tool initialisation is now in tools.go the change was quite big, so apologies for the extra work, but it's probably best to drop the merge commit and rebase with main again, and be careful about resolving the merge conflicts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sub-issue endpoint Add tool add_sub_issue
2 participants