Note: You can set the visibility of a repository using the new visibility parameter in the Repositories API, and get a repository's visibility with a new response key. For more information, see the blog post.
To access repository visibility during the preview period, you must provide a custom media type in the Accept header:
application/vnd.github.nebula-preview+json
Warning: The API may change without advance notice during the preview period. Preview features are not supported for production use. If you experience any issues, contact GitHub Support or GitHub Premium Support.
Lists public repositories for the specified user.
GET /users/:username/repos
| Name | Type | Description |
|---|---|---|
type |
string |
Can be one of all, owner, member. Default: owner
|
sort |
string |
Can be one of created, updated, pushed, full_name. Default: full_name
|
direction |
string |
Can be one of asc or desc. Default: asc when using full_name, otherwise desc
|