Usage #
// Import the typed helper
import { updateRepo } from "@hotglue/sdk/github";
const result = await client.execute({
...updateRepo({
owner: string,
repo: string,
name: string,
// ...
}),
userId: "user_123",
});
// result is typed as UpdateRepoOutput
const result = await client.execute({
integration: "github",
tool: "update_repo",
userId: "user_123",
input: {
owner: string,
repo: string,
name: 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 Repository tool");
Required Permissions #
repo
Input Schema #
owner
string
required
Repository owner
repo
string
required
Repository name
name
string
New repository name
description
string
Short description
homepage
string
URL with more info
private
bool
Whether the repository is private
visibility
string
values:
public, private, internal
has_issues
bool
Enable issues
has_projects
bool
Enable projects
has_wiki
bool
Enable wiki
default_branch
string
Default branch name
archived
bool
Archive the repository
This tool calls: #
PATCH
https://api.github.com/repos/{owner}/{repo}