Skip to main content

installations_repos

Overview

Nameinstallations_repos
TypeResource
Idgithub.apps.installations_repos

Fields

NameDatatype
repositoriesarray
repository_selectionstring
total_countinteger

Methods

NameAccessible byRequired ParamsDescription
list_installation_repos_for_authenticated_userSELECTinstallation_idList repositories that the authenticated user has explicit permission (:read, :write, or :admin) to access for an installation.

The authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership.

You must use a user-to-server OAuth access token, created for a user who has authorized your GitHub App, to access this endpoint.

The access the user has to each repository is included in the hash under the permissions key.
list_repos_accessible_to_installationSELECTList repositories that an app installation can access.

You must use an installation access token to access this endpoint.
add_repo_to_installation_for_authenticated_userINSERTinstallation_id, repository_idAdd a single repository to an installation. The authenticated user must have admin access to the repository.

You must use a personal access token (which you can create via the command line or Basic Authentication) to access this endpoint.
remove_repo_from_installation_for_authenticated_userDELETEinstallation_id, repository_idRemove a single repository from an installation. The authenticated user must have admin access to the repository.

You must use a personal access token (which you can create via the command line or Basic Authentication) to access this endpoint.
revoke_installation_access_tokenEXECRevokes the installation token you're using to authenticate as an installation and access this endpoint.

Once an installation token is revoked, the token is invalidated and cannot be used. Other endpoints that require the revoked installation token must have a new installation token to work. You can create a new token using the "Create an installation access token for an app" endpoint.

You must use an installation access token to access this endpoint.