curl --request GET \
--url https://api.diversion.dev/v0/repos/{repo_id}/reviews/{review_id}/comments \
--header 'Authorization: Bearer <token>'{
"object": "ReviewComment",
"items": [
{
"id": "<string>",
"review_id": "<string>",
"thread_id": "<string>",
"author": {
"id": "<string>",
"image": "<string>",
"email": "[email protected]",
"full_name": "<string>",
"name": "<string>",
"tier": "EDUCATION"
},
"content": "<string>",
"created_at": 123,
"updated_at": 123,
"file_path": "<string>",
"start_line": 123,
"end_line": 123,
"start_side": "left",
"end_side": "left"
}
]
}List all comments associated with a review
curl --request GET \
--url https://api.diversion.dev/v0/repos/{repo_id}/reviews/{review_id}/comments \
--header 'Authorization: Bearer <token>'{
"object": "ReviewComment",
"items": [
{
"id": "<string>",
"review_id": "<string>",
"thread_id": "<string>",
"author": {
"id": "<string>",
"image": "<string>",
"email": "[email protected]",
"full_name": "<string>",
"name": "<string>",
"tier": "EDUCATION"
},
"content": "<string>",
"created_at": 123,
"updated_at": 123,
"file_path": "<string>",
"start_line": 123,
"end_line": 123,
"start_side": "left",
"end_side": "left"
}
]
}This API uses OAuth 2 with the implicit grant flow
The repo ID of the repository. Repo name can be used instead of the ID, but usage of ID for permanent linking and API requests is preferred.
3 - 128"example_id"
Review ID
128Comments returned
"ReviewComment"
Show child attributes
Comment ID
Review ID this comment belongs to
Thread ID this comment belongs to
User details
Show child attributes
URL of the user image. If updating the image, could be a base64 encoded image.
524288The tier of the user
EDUCATION, INDIE, PROFESSIONAL, ENTERPRISE, UNKNOWN Comment content
Unix timestamp when the comment was created
Unix timestamp when the comment was last updated
File path for inline comments
Starting line number for inline comments
Ending line number for inline comments
Side of a diff view (left = base/original, right = compare/modified)
left, right Side of a diff view (left = base/original, right = compare/modified)
left, right