name | example | route | scope | type |
---|---|---|---|---|
List branches |
octokit.rest.repos.listBranches({ owner, repo }) |
GET /repos/{owner}/{repo}/branches |
repos |
API method |
octokit.rest.repos.listBranches({
owner,
repo,
});
name | required | description |
---|---|---|
owner | yes |
The account owner of the repository. The name is not case sensitive. |
repo | yes |
The name of the repository without the |
protected | no |
Setting to |
per_page | no |
The number of results per page (max 100). For more information, see "Using pagination in the REST API." |
page | no |
The page number of the results to fetch. For more information, see "Using pagination in the REST API." |
See also: GitHub Developer Guide documentation.