name | example | route | scope | type |
---|---|---|---|---|
Add selected repository to an organization variable |
octokit.rest.actions.addSelectedRepoToOrgVariable({ org, name, repository_id }) |
PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id} |
actions |
API method |
Adds a repository to an organization variable that is available to selected repositories. Organization variables that are available to selected repositories have their visibility
field set to selected
. You must authenticate using an access token with the admin:org
scope to use this endpoint. GitHub Apps must have the organization_actions_variables:write
organization permission to use this endpoint.
octokit.rest.actions.addSelectedRepoToOrgVariable({
org,
name,
repository_id,
});
name | required | description |
---|---|---|
org | yes |
The organization name. The name is not case sensitive. |
name | yes |
The name of the variable. |
repository_id | yes |
See also: GitHub Developer Guide documentation.