List Repositories for User

Lists public repositories for the specified user

Usage #

// Import the typed helper
import { listReposForUser } from "@hotglue/sdk/github";
const result = await client.execute({
...listReposForUser({
username: string,
type: string,
sort: string,
// ...
}),
userId: "user_123",
});
// result is typed as ListReposForUserOutput
const result = await client.execute({
integration: "github",
tool: "list_repos_for_user",
userId: "user_123",
input: {
username: 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 Repositories for User tool");

Input Schema #

username string required

Username of the account

type string
default: owner values: all, owner, member
sort string
default: full_name values: created, updated, pushed, full_name
per_page int
default: 30
page int
default: 1

This tool calls: #

GET https://api.github.com/users/{username}/repos