GET
/repos/{owner}/{repo}/milestones/{milestone_number}/labelsList labels for issues in a milestone
Lists the labels associated with issues in a repository milestone. Use page and per_page to paginate the results. The response contains label metadata such as names, descriptions, colors, and archive information.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
ownerstringrequired
The account owner of the repository; the name is not case sensitive.
repostringrequired
The repository name without the `.git` extension; the name is not case sensitive.
milestone_numberintegerrequired
The integer that identifies the milestone.
per_pageintegeroptional
The number of labels to return per page, up to 100. Defaults to 30 when omitted.
pageintegeroptional
The page number to retrieve. Defaults to 1 when omitted.
200Returns an array of label objects containing identifiers, names, descriptions, colors, default-label status, and archive information.
idintegerrequired
Unique identifier for the label.
node_idstringrequired
urlstringrequired
URL for the label
namestringrequired
The name of the label.
descriptionstringrequired
Optional description of the label, such as its purpose.
colorstringrequired
6-character hex code, without the leading #, identifying the color
defaultbooleanrequired
Whether this label comes by default in a new repository.
archived_atstringrequired
Timestamp indicating when the label was archived, or `null` if it has not been archived.
archived_byobjectrequired
The user who archived the label, or `null` if it has not been archived.
Error handling
owner, repo, and milestone_number identify the milestone whose issue labels you want to list. Use page and per_page to paginate the results; per_page accepts a maximum of 100 results.