Skip to content

Latest commit

 

History

History
52 lines (39 loc) · 1.21 KB

addCustomLabelsToSelfHostedRunnerForOrg.md

File metadata and controls

52 lines (39 loc) · 1.21 KB
name example route scope type
Add custom labels to a self-hosted runner for an organization
octokit.rest.actions.addCustomLabelsToSelfHostedRunnerForOrg({ org, runner_id, labels })
POST /orgs/{org}/actions/runners/{runner_id}/labels
actions
API method

Add custom labels to a self-hosted runner for an organization

Add custom labels to a self-hosted runner configured in an organization.

You must authenticate using an access token with the admin:org scope to use this endpoint.

octokit.rest.actions.addCustomLabelsToSelfHostedRunnerForOrg({
  org,
  runner_id,
  labels,
});

Parameters

name required description
orgyes

The organization name. The name is not case sensitive.

runner_idyes

Unique identifier of the self-hosted runner.

labelsyes

The names of the custom labels to add to the runner.

See also: GitHub Developer Guide documentation.