Refactor to toolState

This commit is contained in:
Colin McDonnell
2025-12-16 20:41:10 -08:00
parent 956245962e
commit 4db8e28bf7
7 changed files with 49 additions and 38 deletions
+3
View File
@@ -13,6 +13,9 @@ export function GetIssueCommentsTool(ctx: Context) {
"Get all comments for a GitHub issue. Returns all comments including the issue body and all subsequent discussion comments.",
parameters: GetIssueComments,
execute: execute(ctx, async ({ issue_number }) => {
// set issue context
ctx.toolState.issueNumber = issue_number;
const comments = await ctx.octokit.paginate(ctx.octokit.rest.issues.listComments, {
owner: ctx.owner,
repo: ctx.name,