v1

latestOpenAPI 3.0.02026-07-249055687.1 KB
repo-labels

Get repository label (beta)

Retrieve a repository label associated with an organization and label ID.

This endpoint consumes 1 unit of your quota.

This endpoint requires the following org token scopes:

  • repo-label:list
get/orgs/{org_slug}/repos/labels/{label_id}

Path parameters

org_slugstring required

The slug of the organization

label_idstring required

The ID of the label

Response

Returns a specific repository label for the specified organization. The authenticated user must be a member of the organization.

idstring

The ID of the label

namestring

The name of the label

repository_idsstring[]

The IDs of repositories this label is associated with

has_security_policyboolean

Whether the label has a security policy

has_license_policyboolean

Whether the label has a license policy