provider repos GET
/user/repos @utdk/github
/user/repos List repositories for the authenticated user
Lists repositories that the authenticated user has explicit permission (`:read`, `:write`, or `:admin`) to access.
The authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership.
- visibility query
- Limit results to repositories with the specified visibility.
- enum: all, public, private
- affiliation query
- Comma-separated list of values. Can include: * `owner`: Repositories that are owned by the authenticated user. * `collaborator`: Repositories that the user has been added to as a collaborator. * `organization_member`: Repositories that the user has access to through being a member of an organization. This includes every repository on every team that the user is on.
- string
- type query
- Limit results to repositories of the specified type. Will cause a `422` error if used in the same request as **visibility** or **affiliation**.
- enum: all, owner, public, private…
- sort query
- The property to sort the results by.
- enum: created, updated, pushed, full_name
- direction query
- The order to sort by. Default: `asc` when using `full_name`, otherwise `desc`.
- enum: asc, desc
- per_page query
- The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
- integer
- page query
- The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
- integer
- since query
- Only show repositories updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.
- string
- before query
- Only show repositories updated before the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.
- string
Try it
Authentication
Configure credentials for GitHub v3 REST API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.
Saved automatically to browser storage.
Code snippet
Updates live as you fill in the form above.
TypeScript
import github from '@utdk/github';
await github.repos.listForAuthenticatedUser({
"visibility": "all",
"affiliation": "owner,collaborator,organization_member",
"type": "all",
"sort": "full_name",
"per_page": 30,
"page": 1
})