List Issues

Lists issues assigned to the authenticated user across all visible repositories

Usage #

// Import the typed helper
import { listIssues } from "@hotglue/sdk/github";
const result = await client.execute({
...listIssues({
filter: string,
state: string,
labels: string,
// ...
}),
userId: "user_123",
});
// result is typed as ListIssuesOutput
const result = await client.execute({
integration: "github",
tool: "list_issues",
userId: "user_123",
input: {
filter: string,
state: string,
labels: 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 Issues tool");

Required Permissions #

repo

Input Schema #

filter string

Issue filter type

default: assigned values: assigned, created, mentioned, subscribed, repos, all
state string

Issue state

default: open values: open, closed, all
labels string

Comma-separated list of label names

sort string
default: created values: created, updated, comments
direction string
default: desc values: asc, desc
since string

Only issues updated after this time (ISO 8601 format)

per_page int
default: 30
page int
default: 1

This tool calls: #

GET https://api.github.com/issues