name | example | route | scope | type |
---|---|---|---|---|
Add a repository to an app installation |
octokit.apps.addRepoToInstallation({ installation_id, repository_id }) |
PUT /user/installations/{installation_id}/repositories/{repository_id} |
apps |
API method |
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.
octokit.apps.addRepoToInstallation({
installation_id,
repository_id,
});
name | required | description |
---|---|---|
installation_id | yes |
installation_id parameter |
repository_id | yes |
See also: GitHub Developer Guide documentation.