Skip to content

Latest commit

 

History

History
48 lines (37 loc) · 1.35 KB

addSelectedRepoToOrgVariable.md

File metadata and controls

48 lines (37 loc) · 1.35 KB
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

Add selected repository to an organization variable

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,
});

Parameters

name required description
orgyes

The organization name. The name is not case sensitive.

nameyes

The name of the variable.

repository_idyes

See also: GitHub Developer Guide documentation.