Create Organization Repository

Creates a new repository in an organization

Usage #

// Import the typed helper
import { createOrgRepo } from "@hotglue/sdk/github";
const result = await client.execute({
...createOrgRepo({
org: string,
name: string,
description: string,
// ...
}),
userId: "user_123",
});
// result is typed as CreateOrgRepoOutput
const result = await client.execute({
integration: "github",
tool: "create_org_repo",
userId: "user_123",
input: {
org: string,
name: string,
description: 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 Organization Repository tool");

Required Permissions #

repo admin:org

Input Schema #

org string required

Organization name

name string required

Repository name

description string

Short description

homepage string

URL with more info

private bool
default: false
visibility string
values: public, private, internal
has_issues bool
default: true
has_projects bool
default: true
has_wiki bool
default: true
auto_init bool
default: false
team_id int

ID of team that will have access

This tool calls: #

POST https://api.github.com/orgs/{org}/repos