self_hosted_runner_labels
Overview
Name | self_hosted_runner_labels |
Type | Resource |
Id | github.actions.self_hosted_runner_labels |
Fields
Name | Datatype | Description |
---|---|---|
id | integer | Unique identifier of the label. |
name | string | Name of the label. |
type | string | The type of label. Read-only labels are applied automatically when the runner is configured. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
list_labels_for_self_hosted_runner_for_org | SELECT | org, runner_id | Lists all labels for a self-hosted runner configured in an organization. You must authenticate using an access token with the admin:org scope to use this endpoint. |
list_labels_for_self_hosted_runner_for_repo | SELECT | owner, repo, runner_id | Lists all labels for a self-hosted runner configured in a repository. You must authenticate using an access token with the repo scope to use thisendpoint. |
add_custom_labels_to_self_hosted_runner_for_org | INSERT | org, runner_id, data__labels | 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. |
add_custom_labels_to_self_hosted_runner_for_repo | INSERT | owner, repo, runner_id, data__labels | Add custom labels to a self-hosted runner configured in a repository. You must authenticate using an access token with the repo scope to use thisendpoint. |
remove_all_custom_labels_from_self_hosted_runner_for_org | DELETE | org, runner_id | Remove all custom labels from a self-hosted runner configured in an organization. Returns the remaining read-only labels from the runner. You must authenticate using an access token with the admin:org scope to use this endpoint. |
remove_all_custom_labels_from_self_hosted_runner_for_repo | DELETE | owner, repo, runner_id | Remove all custom labels from a self-hosted runner configured in a repository. Returns the remaining read-only labels from the runner. You must authenticate using an access token with the repo scope to use thisendpoint. |
remove_custom_label_from_self_hosted_runner_for_org | DELETE | name, org, runner_id | Remove a custom label from a self-hosted runner configured in an organization. Returns the remaining labels from the runner. This endpoint returns a 404 Not Found status if the custom label is notpresent on the runner. You must authenticate using an access token with the admin:org scope to use this endpoint. |
remove_custom_label_from_self_hosted_runner_for_repo | DELETE | name, owner, repo, runner_id | Remove a custom label from a self-hosted runner configured in a repository. Returns the remaining labels from the runner. This endpoint returns a 404 Not Found status if the custom label is notpresent on the runner. You must authenticate using an access token with the repo scope to use thisendpoint. |
set_custom_labels_for_self_hosted_runner_for_org | EXEC | org, runner_id, data__labels | Remove all previous custom labels and set the new custom labels for a specific self-hosted runner configured in an organization. You must authenticate using an access token with the admin:org scope to use this endpoint. |
set_custom_labels_for_self_hosted_runner_for_repo | EXEC | owner, repo, runner_id, data__labels | Remove all previous custom labels and set the new custom labels for a specific self-hosted runner configured in a repository. You must authenticate using an access token with the repo scope to use thisendpoint. |