| CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Sun, 18 Jan 2026 00:41:04 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20110623020139
location: https://web.archive.org/web/20110623020139/https://developer.github.com/v3/pulls/comments/
server-timing: captures_list;dur=0.515829, exclusion.robots;dur=0.043352, exclusion.robots.policy;dur=0.034714, esindex;dur=0.009186, cdx.remote;dur=13.539118, LoadShardBlock;dur=299.566079, PetaboxLoader3.datanode;dur=106.193938, PetaboxLoader3.resolve;dur=101.578647
x-app-server: wwwb-app221-dc8
x-ts: 302
x-tr: 337
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app221; path=/
x-location: All
x-as: 14061
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Sun, 18 Jan 2026 00:41:05 GMT
content-type: text/html
x-archive-orig-server: nginx/0.7.67
x-archive-orig-date: Thu, 23 Jun 2011 02:01:39 GMT
x-archive-orig-content-length: 16745
x-archive-orig-last-modified: Wed, 22 Jun 2011 15:46:00 GMT
x-archive-orig-connection: close
x-archive-orig-expires: Fri, 24 Jun 2011 02:01:39 GMT
x-archive-orig-cache-control: max-age=86400
x-archive-orig-accept-ranges: bytes
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Thu, 23 Jun 2011 02:01:39 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: alexa-web-20110715083650-00039/52_22_20110623020117_crawl101.arc.gz
server-timing: captures_list;dur=0.582112, exclusion.robots;dur=0.018578, exclusion.robots.policy;dur=0.008378, esindex;dur=0.010208, cdx.remote;dur=5.105569, LoadShardBlock;dur=484.415450, PetaboxLoader3.datanode;dur=275.618386, PetaboxLoader3.resolve;dur=195.846528, load_resource;dur=239.867325
x-app-server: wwwb-app221-dc8
x-ts: 200
x-tr: 782
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-as: 14061
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
Pull Request Comments API v3 | developer.github.com
Pull Request Comments API
Pull Request Comments leverage these custom mime types. You can read more about the use of mimes types in the API here.
List comments on a pull request
GET /repos/:user/:repo/pulls/:id/comments
Response
Status: 200 OK
X-RateLimit-Limit: 5000
X-RateLimit-Remaining: 4999
[
{
"url": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1",
"id": 1,
"body": "Great stuff",
"path": "file1.txt",
"position": 4,
"commit_id": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
"user": {
"login": "octocat",
"id": 1,
"gravatar_url": "https://github.com/images/error/octocat_happy.gif",
"url": "https://api.github.com/users/octocat"
},
"created_at": "2011-04-14T16:00:49Z",
"updated_at": "2011-04-14T16:00:49Z"
}
]
Get a single comment
GET /repos/:user/:repo/pulls/comments/:id
Response
Status: 200 OK
X-RateLimit-Limit: 5000
X-RateLimit-Remaining: 4999
{
"url": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1",
"id": 1,
"body": "Great stuff",
"path": "file1.txt",
"position": 4,
"commit_id": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
"user": {
"login": "octocat",
"id": 1,
"gravatar_url": "https://github.com/images/error/octocat_happy.gif",
"url": "https://api.github.com/users/octocat"
},
"created_at": "2011-04-14T16:00:49Z",
"updated_at": "2011-04-14T16:00:49Z"
}
Create a comment
POST /repos/:user/:repo/pulls/:id/comments
Input
- body
- Required string
- commit_id
- Required string - Sha of the commit to comment on.
- path
- Required string - Relative path of the file to comment on.
- position
- Required number - Line index in the diff to comment on.
Example
{
"body": "Nice change",
"commit_id": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
"path": "file1.txt",
"position": 4
}
Alternative Input
Instead of passing commit_id, path, and position you can reply to
an existing Pull Request Comment like this:
- body
- Required string
- in_reply_to
- Required number - Comment id to reply to.
Example
{
"body": "Nice change",
"in_reply_to": 4
}
Response
Status: 201 Created
Location: https://api.github.com/repos/:user/:repo/pulls/comments/1
X-RateLimit-Limit: 5000
X-RateLimit-Remaining: 4999
{
"url": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1",
"id": 1,
"body": "Great stuff",
"path": "file1.txt",
"position": 4,
"commit_id": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
"user": {
"login": "octocat",
"id": 1,
"gravatar_url": "https://github.com/images/error/octocat_happy.gif",
"url": "https://api.github.com/users/octocat"
},
"created_at": "2011-04-14T16:00:49Z",
"updated_at": "2011-04-14T16:00:49Z"
}
Edit a comment
PATCH /repos/:user/:repo/pulls/comments/:id
Input
- body
- Required string
Example
{
"body": "Nice change"
}
Response
Status: 200 OK
X-RateLimit-Limit: 5000
X-RateLimit-Remaining: 4999
{
"url": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1",
"id": 1,
"body": "Great stuff",
"path": "file1.txt",
"position": 4,
"commit_id": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
"user": {
"login": "octocat",
"id": 1,
"gravatar_url": "https://github.com/images/error/octocat_happy.gif",
"url": "https://api.github.com/users/octocat"
},
"created_at": "2011-04-14T16:00:49Z",
"updated_at": "2011-04-14T16:00:49Z"
}
Delete a comment
DELETE /repos/:user/:repo/pulls/comments/:id
Response
Status: 204 No Content
X-RateLimit-Limit: 5000
X-RateLimit-Remaining: 4999
Custom Mime Types
These are the support mime types for pull request comments. You can read more about the use of mimes types in the API here.
application/vnd.github-pullcomment.raw+json
application/vnd.github-pullcomment.text+json
application/vnd.github-pullcomment.html+json
application/vnd.github-pullcomment.full+json
This website is open source. Please help us by forking the project and adding to it.
Powered by the Dedicated Servers and Cloud Computing of Rackspace Hosting®
