installation_repos
Overview
Name | installation_repos |
Type | Resource |
Id | github.apps.installation_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 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. | |
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. The installation must have the repository_selection of selected .You must use a personal access token (which you can create via the command line or Basic Authentication) to access this endpoint. |
add_repo_to_installation_for_authenticated_user | EXEC | 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. |