Update Issue

Updates an existing issue

Usage #

// Import the typed helper
import { updateIssue } from "@hotglue/sdk/github";
const result = await client.execute({
...updateIssue({
owner: string,
repo: string,
issue_number: string,
// ...
}),
userId: "user_123",
});
// result is typed as UpdateIssueOutput
const result = await client.execute({
integration: "github",
tool: "update_issue",
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 Update Issue tool");

Required Permissions #

repo

Input Schema #

owner string required

Repository owner

repo string required

Repository name

issue_number string required

Issue number

title string

Issue title

body string

Issue body

state string

Issue state

values: open, closed
state_reason string

Reason for state change

values: completed, not_planned, reopened
assignees string[]

Usernames to assign

milestone int

Milestone number (null to remove)

labels string[]

Labels (replaces existing)

This tool calls: #

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