List User Repositories

Lists repositories for the authenticated user

Usage #

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

Required Permissions #

repo

Input Schema #

visibility string

Filter by repository visibility

default: all values: all, public, private
affiliation string

Comma-separated list of affiliation values (owner, collaborator, organization_member)

default: owner,collaborator,organization_member
type string

Filter repositories by type

default: all values: all, owner, public, private, member
sort string

How to sort the results

default: full_name values: created, updated, pushed, full_name
direction string

Sort direction

values: asc, desc
per_page int

Results per page (max 100)

default: 30
page int

Page number

default: 1

This tool calls: #

GET https://api.github.com/user/repos