2.1 KiB
Return to top
Load Branches for a GitHub Repository
===================================================================================================================================================
GET
/github-apps/{github_app_id}/repositories/{owner}/{repo}/branches
Fetch branches from GitHub for a given repository.
Authorizations
bearerAuth
Go to Keys & Tokens / API tokens and create a new token. Use the token as the bearer token.
Type
HTTP (bearer)
Parameters
Path Parameters
github_app_id*
GitHub App ID
Type
integer
Required
owner*
Repository owner
Type
string
Required
repo*
Repository name
Type
string
Required
Responses
200400401404
Branches loaded successfully.
Content-Type
application/json
SchemaJSON
JSON
{
"branches": [
{
}
]
}
GET
/github-apps/{github_app_id}/repositories/{owner}/{repo}/branches
Playground
Authorization
bearerAuth
Variables
Key
Value
github_app_id*
owner*
repo*
Try it out
Samples
Powered by VitePress OpenAPI