List Organization Repositories

Lists repositories for the specified organization

Usage #

// Import the typed helper
import { listOrgRepos } from "@hotglue/sdk/github";
const result = await client.execute({
...listOrgRepos({
org: string,
type: string,
sort: string,
// ...
}),
userId: "user_123",
});
// result is typed as ListOrgReposOutput
const result = await client.execute({
integration: "github",
tool: "list_org_repos",
userId: "user_123",
input: {
org: string,
type: string,
sort: 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 List Organization Repositories tool");

Required Permissions #

read:org

Input Schema #

org string required

Organization name

type string
default: all values: all, public, private, forks, sources, member
sort string
default: created values: created, updated, pushed, full_name
per_page int
default: 30
page int
default: 1

This tool calls: #

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