issue_number parameter
Add labels to an issue
Path Parameters
Body
application/json
Body
One Of
The names of the labels to add to the issue’s existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a string
or an array
of labels directly, but GitHub recommends passing an object with the labels
key. You can also replace all of the labels for an issue. For more information, see “Set labels for an issue.”
>= 1 items
Response
application/json
Response
Response
Color-coded labels help you categorize and filter your issues (just like labels in Gmail).
Example:208045946
Example:MDU6TGFiZWwyMDgwNDU5NDY=
URL for the label
Example:https://api.github.com/repositories/42/labels/bug
The name of the label.
Example:bug
Example:Something isn't working
6-character hex code, without the leading #, identifying the color
Example:FFFFFF
Example:true
Path Parameters
Body
Set labels for an issue
Removes any previous labels and sets the new labels for an issue.
Path Parameters
issue_number parameter
Body
application/json
Body
One Of
The names of the labels to set for the issue. The labels you set replace any existing labels. You can pass an empty array to remove all labels. Alternatively, you can pass a single label as a string
or an array
of labels directly, but GitHub recommends passing an object with the labels
key. You can also add labels to the existing labels for an issue. For more information, see “Add labels to an issue.”
>= 1 items
Response
application/json
Response
Response
Color-coded labels help you categorize and filter your issues (just like labels in Gmail).
Example:208045946
Example:MDU6TGFiZWwyMDgwNDU5NDY=
URL for the label
Example:https://api.github.com/repositories/42/labels/bug
The name of the label.
Example:bug
Example:Something isn't working
6-character hex code, without the leading #, identifying the color
Example:FFFFFF
Example:true
Path Parameters
Body
Remove all labels from an issue
Path Parameters
issue_number parameter
Response
Response
Response
Path Parameters
Remove a label from an issue
Removes 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.
Path Parameters
issue_number parameter
Response
application/json
Response
Response
Color-coded labels help you categorize and filter your issues (just like labels in Gmail).
Example:208045946
Example:MDU6TGFiZWwyMDgwNDU5NDY=
URL for the label
Example:https://api.github.com/repositories/42/labels/bug
The name of the label.
Example:bug
Example:Something isn't working
6-character hex code, without the leading #, identifying the color
Example:FFFFFF
Example:true
Path Parameters
Lock an issue
Users with push access can lock an issue or pull request’s conversation.
Note that, if you choose not to pass any parameters, you’ll need to set Content-Length
to zero when calling out to this endpoint. For more information, see “HTTP verbs.”
Path Parameters
issue_number parameter
Body
application/json
Body
The reason for locking the issue or pull request conversation. Lock will fail if you don’t use one of these reasons:
* off-topic
* too heated
* resolved
* spam
Allowed values:off-topictoo heatedresolvedspam
Response
Response
Response