List Repository Issues

Lists issues for a repository. Note: GitHub considers every pull request an issue.

Usage #

// Import the typed helper
import { listRepoIssues } from "@hotglue/sdk/github";
const result = await client.execute({
...listRepoIssues({
owner: string,
repo: string,
milestone: string,
// ...
}),
userId: "user_123",
});
// result is typed as ListRepoIssuesOutput
const result = await client.execute({
integration: "github",
tool: "list_repo_issues",
userId: "user_123",
input: {
owner: string,
repo: string,
milestone: 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 Repository Issues tool");

Required Permissions #

repo

Input Schema #

owner string required

Repository owner

repo string required

Repository name

milestone string

Milestone number, * for any, or none

state string
default: open values: open, closed, all
assignee string

Username, * for any, or none

creator string

Filter by issue creator username

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

per_page int
default: 30
page int
default: 1

This tool calls: #

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