| title | Issue Comments | GitHub API |
|---|
- TOC {:toc}
The Issue Comments API supports listing, viewing, editing, and creating comments on issues and pull requests.
Issue Comments leverage these custom mime types. You can read more about the use of mime types in the API here.
GET /repos/:owner/:repo/issues/:number/comments
<%= headers 200, :pagination => true %> <%= json(:issue_comment) { |h| [h] } %>
GET /repos/:owner/:repo/issues/comments/:id
<%= headers 200 %> <%= json :issue_comment %>
POST /repos/:owner/:repo/issues/:number/comments
body : Required string
<%= json :body => "a new comment" %>
<%= headers 201, :Location => "https://api.github.com/repos/user/repo/issues/comments/1" %> <%= json :issue_comment %>
PATCH /repos/:owner/:repo/issues/comments/:id
body : Required string
<%= json :body => "String" %>
<%= headers 200 %> <%= json :issue_comment %>
DELETE /repos/:owner/:repo/issues/comments/:id
<%= headers 204 %>
These are the supported mime types for issue comments. You can read more about the use of mime types in the API here.
application/vnd.github.VERSION.raw+json
application/vnd.github.VERSION.text+json
application/vnd.github.VERSION.html+json
application/vnd.github.VERSION.full+json