Skip to content

Latest commit

 

History

History
54 lines (40 loc) · 1.43 KB

addSelectedRepoToRequiredWorkflow.md

File metadata and controls

54 lines (40 loc) · 1.43 KB
name example route scope type
Add a repository to a required workflow
octokit.rest.actions.addSelectedRepoToRequiredWorkflow({ org, required_workflow_id, repository_id })
PUT /orgs/{org}/actions/required_workflows/{required_workflow_id}/repositories/{repository_id}
actions
API method

Add a repository to a required workflow

Adds a repository to a required workflow. To use this endpoint, the required workflow must be configured to run on selected repositories.

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

For more information, see "Required Workflows."

octokit.rest.actions.addSelectedRepoToRequiredWorkflow({
  org,
  required_workflow_id,
  repository_id,
});

Parameters

name required description
orgyes

The organization name. The name is not case sensitive.

required_workflow_idyes

The unique identifier of the required workflow.

repository_idyes

The unique identifier of the repository.

See also: GitHub Developer Guide documentation.