Skip to content

List all commit comments

GET
/api/v4/projects/{id}/repository/commits/{sha}/comments

Lists all the comments of a commit in a project.

id
required
One of:
string

The ID or URL-encoded path of the project

sha
required
string

A commit sha, or the name of a branch or tag

page
integer
default: 1 nullable

Current page number

Example
1
per_page
integer
default: 20 nullable

Number of items per page

Example
20

OK

Media type application/json
object
note
string
path
string
line
integer
line_type
string
author
object
id
integer format: int64
username
string
public_email
string
name
string
state
string
locked
boolean
avatar_url
string
avatar_path
string
custom_attributes
Array<object>
object
key
string
value
string
web_url
string
created_at
string format: date-time
Example
{
"note": "this doc is really nice",
"path": "README.md",
"line": 11,
"line_type": "new",
"author": {
"id": 1,
"username": "admin",
"public_email": "john@example.com",
"name": "Administrator",
"state": "active",
"avatar_url": "https://gravatar.com/avatar/1",
"avatar_path": "/user/avatar/28/The-Big-Lebowski-400-400.png",
"custom_attributes": [
{
"key": "foo",
"value": "bar"
}
],
"web_url": "https://gitlab.example.com/root"
},
"created_at": "2016-01-19T09:44:55.600Z"
}

Bad Request

Not found