Get GitHub Repository
Get a repository's default branch, branches and tags through a GitHub installation usable in the team, to pick the branch for create-service.
Get a repository's default branch, branches and tags through a GitHub installation usable in the team, to pick the branch for create-service.
Authorization
bearerAuth Access token or API key (unb_...) passed as Authorization: Bearer <token>.
In: header
Query Parameters
The team to build in
uuidint64Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/github/repositories/info?team_id=497f6eca-6276-4993-bfeb-53cbbbba6f08&installation_id=0&owner=string&repo_name=string"{ "data": { "archived": true, "branches": [ { "name": "string", "protected": true, "ref": "string", "sha": "string" } ], "createdAt": "2019-08-24T14:15:22Z", "defaultBranch": "string", "description": "string", "disabled": true, "fork": true, "forksCount": 0, "fullName": "string", "htmlUrl": "string", "id": 0, "installationId": 0, "language": "string", "name": "string", "openIssuesCount": 0, "owner": { "avatar_url": "string", "id": 0, "login": "string", "name": "string" }, "private": true, "pushedAt": "2019-08-24T14:15:22Z", "size": 0, "stargazersCount": 0, "tags": [ { "name": "string", "ref": "string", "sha": "string" } ], "updatedAt": "2019-08-24T14:15:22Z", "url": "string", "watchersCount": 0 }}List GitHub Installations GET
List the GitHub accounts and organizations the caller can build from in a team: their own connections, the ones shared with the team and the ones shared with all teams. Pass an installation's id as github_installation_id to create-service in that team. An installation that is suspended or not active cannot be used. With repository_selection selected, only the repositories picked on GitHub are reachable; list-github-repositories shows them.
Who Am I GET
Get the authenticated user. For an API key or a connected app it also returns the role and the resources the credential is limited to.