installations_repos
Overview
Name | installations_repos |
Type | Resource |
Id | github.apps.installations_repos |
Fields
Name | Datatype |
---|---|
repositories | array |
repository_selection | string |
total_count | integer |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
list_installation_repos_for_authenticated_user | SELECT | installation_id | List 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_installation | SELECT | List repositories that an app installation can access. You must use an installation access token to access this endpoint. | |
add_repo_to_installation_for_authenticated_user | INSERT | installation_id, repository_id | Add 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_user | DELETE | installation_id, repository_id | Remove 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_token | EXEC | Revokes 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. |