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 |
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,
});
name | required | description |
---|---|---|
org | yes |
The organization name. The name is not case sensitive. |
required_workflow_id | yes |
The unique identifier of the required workflow. |
repository_id | yes |
The unique identifier of the repository. |
See also: GitHub Developer Guide documentation.