Replace Repository Topics

Replaces all topics for a repository

Usage #

// Import the typed helper
import { replaceRepoTopics } from "@hotglue/sdk/github";
const result = await client.execute({
...replaceRepoTopics({
owner: string,
repo: string,
names: array,
}),
userId: "user_123",
});
// result is typed as ReplaceRepoTopicsOutput
const result = await client.execute({
integration: "github",
tool: "replace_repo_topics",
userId: "user_123",
input: {
owner: string,
repo: string,
names: array,
},
});
// 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 Replace Repository Topics tool");

Required Permissions #

repo

Input Schema #

owner string required

Repository owner

repo string required

Repository name

names string[] required

Array of topic names

This tool calls: #

PUT https://api.github.com/repos/{owner}/{repo}/topics