Get Repository Branches with CICD Runs
GET/code/api/v1/repositories/branches
Get a list with all the repositories branches for the requesting customer The returned branches are branches that has at list one CICD runs each branches item includes: name, creationDate, CICD status
Request
Query Parameters
repoOwner stringrequired
repoName stringrequired
Responses
- 200
- 400
- 422
- 500
repository branches
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
- Array [
- ]
branches object[]required
creationDate stringnullablerequired
defaultBranch booleanrequired
name stringrequired
source stringrequired
{
"branches": [
{
"creationDate": "string",
"defaultBranch": true,
"name": "string"
}
],
"source": "string"
}
{
"branches": [
{
"creationDate": "2021-07-13T14:22:53.964Z",
"defaultBranch": false,
"name": "some_branch"
},
{
"creationDate": null,
"defaultBranch": true,
"name": "master"
}
],
"source": "Gitlab"
}
Could not get branches, check GET query params
Request arguments validation error
Could not fetch Repositories for customer
Loading...