List Milestones

Lists milestones for a repository

Usage #

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

Input Schema #

owner string required

Repository owner

repo string required

Repository name

state string
default: open values: open, closed, all
sort string
default: due_on values: due_on, completeness
direction string
default: asc values: asc, desc
per_page int
default: 30
page int
default: 1

This tool calls: #

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