Lock Issue

Locks an issue conversation

Usage #

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

Required Permissions #

repo

Input Schema #

owner string required

Repository owner

repo string required

Repository name

issue_number string required

Issue number

lock_reason string

Reason for locking

values: off-topic, too heated, resolved, spam

This tool calls: #

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