Github API

Getting access, Developing, Testing

Back to Github

Add custom labels to a self-hosted runner for a repository

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 this endpoint.

Input

type: object properties: parameters: type: object properties: owner: type: string description: The account owner of the repository. The name is not case sensitive. repo: type: string description: The name of the repository. The name is not case sensitive. runner_id: type: integer description: Unique identifier of the self-hosted runner. required: - owner - repo - runner_id title: Parameters data: type: object properties: labels: type: array minItems: 1 maxItems: 100 description: The names of the custom labels to add to the runner. items: type: string title: Data

Output

type: object properties: total_count: type: integer labels: type: array items: type: object title: Self hosted runner label properties: id: type: integer description: Unique identifier of the label. name: type: string description: Name of the label. type: type: string description: >- The type of label. Read-only labels are applied automatically when the runner is configured. enum: - read-only - custom