List GitHub Installations
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.
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.
Authorization
bearerAuth Access token or API key (unb_...) passed as Authorization: Bearer <token>.
In: header
Query Parameters
The team to build in. Service counts are limited to it.
uuidResponse 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/installations?team_id=497f6eca-6276-4993-bfeb-53cbbbba6f08"{ "data": [ { "account_id": 0, "account_login": "string", "account_type": "string", "account_url": "string", "active": true, "created_at": "2019-08-24T14:15:22Z", "events": [ "string" ], "github_app_id": 0, "id": 0, "permissions": { "contents": "string", "metadata": "string" }, "repository_selection": "string", "service_count": 0, "suspended": true, "updated_at": "2019-08-24T14:15:22Z" } ]}List GitHub Repositories GET
List the repositories the caller can build in a team, each with the installation_id to pass to create-service along with owner.login and name. A repository missing here cannot be built in the team until it is added to the installation on GitHub or its connection is shared with the team.
Get GitHub Repository GET
Get a repository's default branch, branches and tags through a GitHub installation usable in the team, to pick the branch for create-service.