-
Notifications
You must be signed in to change notification settings - Fork 559
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
base: main
Are you sure you want to change the base?
Conversation
@juruen @SamMorrowDrums @williammartin @toby Please review my PR . |
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. |
// 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)) |
There was a problem hiding this comment.
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.
Closes: #196