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
Path Parameters
Body
Unlock an issue
Users with push access can unlock an issue’s conversation.
Path Parameters
issue_number parameter
Response
Response
Response
Path Parameters
List timeline events for an issue
Query Parameters
Results per page (max 100)
Default:30
Page number of the results to fetch.
Default:1
Path Parameters
issue_number parameter
Response
application/json
Response
Response
Timeline Event
Any OfSimple User
Show Child Parameters
GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.
Show Child Parameters
Show Child Parameters
Path Parameters
Query Parameters
List labels for a repository
Query Parameters
Results per page (max 100)
Default:30
Page number of the results to fetch.
Default:1
Path Parameters
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
Query Parameters
Create a label
Path Parameters
Body
application/json
Body
The name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing :strawberry: will render the emoji
. For a full list of available emoji and codes, see “Emoji cheat sheet.”
The hexadecimal color code for the label, without the leading #.
A short description of the label. Must be 100 characters or fewer.
Response
application/json
Response
Response
Label
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