Usage #
// Import the typed helper
import { createMilestone } from "@hotglue/sdk/github";
const result = await client.execute({
...createMilestone({
owner: string,
repo: string,
title: string,
// ...
}),
userId: "user_123",
});
// result is typed as CreateMilestoneOutput
const result = await client.execute({
integration: "github",
tool: "create_milestone",
userId: "user_123",
input: {
owner: string,
repo: string,
title: 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 Create Milestone tool");
Required Permissions #
repo
Input Schema #
owner
string
required
Repository owner
repo
string
required
Repository name
title
string
required
Milestone title
description
string
Milestone description
state
string
default:
open
values: open, closed
due_on
string
Due date (ISO 8601 format)
Output Schema #
id
int
required
number
int
required
title
string
required
html_url
string
required
This tool calls: #
POST
https://api.github.com/repos/{owner}/{repo}/milestones