Returns list of pull request comments.
Role
Administrator
Normal User
Method
GET
URL
/api/v2/projects/:projectIdOrKey/git/repositories/:repoIdOrName/pullRequests/:number/comments
URL parameters
Parameter Name |
Type |
Description |
projectIdOrKey |
String |
Project ID or Project Key |
repoIdOrName |
String |
Repository ID or Repository name |
number |
Number |
Pull request number |
Query parameters
Parameter Name |
Type |
Description |
minId |
Number |
minimum ID |
maxId |
Number |
maximum ID |
count |
Number |
number of records to retrieve(1-100) default=20 |
order |
String |
“asc” or “desc” default=“desc” |
Response example
HTTP/1.1 200 OK
Content-Type:application/json;charset=utf-8
Response Body
[
{
"id": 35,
"content": "from api",
"changeLog": [
{
"field": "dependentIssue",
"newValue": "GIT-3",
"originalValue": null
}
],
"createdUser": {
"id": 1,
"userId": "admin",
"name": "admin",
"roleType": 1,
"lang": "ja",
"mailAddress": "eguchi@nulab.example",
"lastLoginTime": "2022-09-01T06:35:39Z"
},
"created":"2015-05-14T01:53:38Z",
"updated":"2015-05-14T01:53:38Z",
"stars":[],
"notifications":[]
},
...
]