Skip to content
Connect an agent

Organisations

The organisation's GitHub App card

Whether the GitHub App is set up here and in the owner's plan, where to install it, the linked installations, and their repositories with the formats found and each one's status.

GET/orgs/{org}/github

TL;DR

QuestionAnswer
What does it do?The organisation's GitHub App card.
What does it take?org in the path.
What does it return?Status 200 with a body of type GithubOverview.
What can go wrong?401 not signed in; 404 no such organisation, or the caller is not a member of it; 429 too many requests; 503 organisations are not set up on this server. Every failure uses the one error envelope.

What it does

Whether the GitHub App is set up here and in the owner's plan, where to install it, the linked installations, and their repositories with the formats found and each one's status. Any member may look.

Path parameters

FieldTypeRequiredDescription
orgstringyesThe organisation's id or its slug.

Responses

StatusMeaningBody
200The card.GithubOverview
401Not signed in.ErrorResponse
404No such organisation, or the caller is not a member of it.ErrorResponse
429Too many requests.ErrorResponse
503Organisations are not set up on this server.ErrorResponse

Response body

A 200 answer has the type GithubOverview.

FieldTypeRequiredDescription
configuredbooleanyesWhether the GitHub App is set up on this server.
activebooleanyesWhether the owner's plan includes the App (Pro and Enterprise).
plan"free" | "pro" | "enterprise"yes
canManagebooleanyesWhether the caller may link, unlink, scan and enable: the owner and admins.
appobject | nullyesThe App, when set up: where to install it, and the client ID the portal starts a GitHub sign-in with.
app.slugstringyes
app.clientIdstringyes
app.installUrlstringyes
installationsGithubInstallation[]yes
installations[].idstringyesGitHub's installation id.
installations[].accountobjectyes
installations[].account.loginstringyes
installations[].account.idstringyes
installations[].account.type"User" | "Organization"yes
installations[].repositorySelection"all" | "selected"yesWhether the App reaches every repository of the account or the ones chosen on GitHub.
installations[].suspendedbooleanyes
installations[].linkedAtintegeryesMilliseconds since the epoch.
installations[].linkedByobject | nullyes
installations[].linkedBy.idstringyes
installations[].linkedBy.emailstringyes
installations[].settingsUrlstringyesThe installation's settings page on GitHub, where it is narrowed, suspended or uninstalled.
repositoriesGithubRepository[]yes
repositories[].idstringyesGitHub's repository id.
repositories[].installationIdstringyes
repositories[].fullNamestringyes
repositories[].privatebooleanyes
repositories[].defaultBranchstringyes
repositories[].formatsarray | nullyesThe import formats the last scan found, such as terraform; null before a scan and after a push to the default branch.
repositories[].detectedAtinteger | nullyes
repositories[].status"none" | "pr_open" | "fix_open" | "merged" | "closed" | "adopted" | "reporting" | "failing"yesnone: not enabled. pr_open: the setup pull request is open. fix_open: a pull request that fixes the settings file is open; once it closes, the repository is scanned again. merged: merged, no drift run since. adopted: set up already, so Enable registered CI with no pull request, and no drift run since. reporting or failing: the latest drift run since it was enabled was clean, or drifted or failed. closed: the pull request was closed without merging.
repositories[].pullRequestobject | nullyes
repositories[].pullRequest.numberintegeryes
repositories[].pullRequest.urlstringyes
repositories[].enabledAtinteger | nullyes
repositories[].lastRunobject | nullyesThe repository's latest drift run, whenever it was sent.
repositories[].lastRun.checkedAtintegeryes
repositories[].lastRun.driftedintegeryes
repositories[].lastRun.failedintegeryes
limitsobjectyes
limits.maxRepositoriesPerInstallationintegeryes

See also

DocWhy
API referenceEvery endpoint, and the error envelope
SchemasEvery request and response type
Tool referenceThe operations as callable tools