List Issue Comments

Lists all comments on an issue

Usage #

// Import the typed helper
import { listIssueComments } from "@hotglue/sdk/github";
const result = await client.execute({
...listIssueComments({
owner: string,
repo: string,
issue_number: string,
// ...
}),
userId: "user_123",
});
// result is typed as ListIssueCommentsOutput
const result = await client.execute({
integration: "github",
tool: "list_issue_comments",
userId: "user_123",
input: {
owner: string,
repo: string,
issue_number: string,
// ...
},
});
// The agent will automatically use this tool when needed
const agent = new Agent({
tools: () => hotglueTools({
integrations: ["github"],
userId: "user_123",
}),
});
await agent.generate("run the List Issue Comments tool");

Required Permissions #

repo

Input Schema #

owner string required

Repository owner

repo string required

Repository name

issue_number string required

Issue number

since string

Only comments updated after this time

per_page int
default: 30
page int
default: 1

This tool calls: #

GET https://api.github.com/repos/{owner}/{repo}/issues/{issue_number}/comments