Get GitHub organization policy
Tells you whether the app’s workspace limits GitHub repositories to an approved list of organizations.
When restricted is true, List GitHub organizations returns only approved organizations, and Connect a GitHub repository answers 403 for any other owner. The approved list itself is managed in workspace settings and is not part of this API.
Workspace owners and admins can connect under any organization while the limit is on, but the organization list they read is filtered the same way, so restricted is true for them too.
Authorizations
Personal API key.
Path Parameters
ID of the app whose workspace decides which GitHub organizations you can use.
Response
Whether the workspace limits which GitHub organizations you can use.
Whether the app's workspace restricts GitHub orgs (create-repo modal notice).
true when the app's workspace limits GitHub repositories to an approved list of organizations.
false