Skip to main content

labels

Overview

Namelabels
TypeResource
Idgithub.issues.labels

Fields

NameDatatypeDescription
idinteger
namestringThe name of the label.
descriptionstring
colorstring6-character hex code, without the leading #, identifying the color
defaultboolean
node_idstring
urlstringURL for the label

Methods

NameAccessible byRequired ParamsDescription
get_labelSELECTname, owner, repoGets a label using the given name.
list_labels_for_milestoneSELECTmilestone_number, owner, repoLists labels for issues in a milestone.
list_labels_for_repoSELECTowner, repoLists all labels for a repository.
list_labels_on_issueSELECTissue_number, owner, repoLists all labels for an issue.
add_labelsINSERTissue_number, owner, repoAdds labels to an issue. If you provide an empty array of labels, all labels are removed from the issue.
create_labelINSERTowner, repo, data__nameCreates a label for the specified repository with the given name and color. The name and color parameters are required. The color must be a valid hexadecimal color code.
delete_labelDELETEname, owner, repoDeletes a label using the given label name.
remove_all_labelsDELETEissue_number, owner, repoRemoves all labels from an issue.
remove_labelDELETEissue_number, name, owner, repoRemoves the specified label from the issue, and returns the remaining labels on the issue. This endpoint returns a 404 Not Found status if the label does not exist.
set_labelsEXECissue_number, owner, repoRemoves any previous labels and sets the new labels for an issue.
update_labelEXECname, owner, repoUpdates a label using the given label name.