curl --request GET \
--url https://api.diversion.dev/v0/repos/{repo_id}/reviews \
--header 'Authorization: Bearer <token>'{
"items": [
{
"id": "<string>",
"title": "<string>",
"status": "open",
"author": {
"id": "<string>",
"image": "<string>",
"email": "[email protected]",
"full_name": "<string>",
"name": "<string>",
"tier": "EDUCATION"
},
"created_at": 123,
"updated_at": 123,
"base_ref": "<string>",
"compare_ref": "<string>",
"repo_id": "<string>",
"description": "<string>",
"reviewers": [
{
"id": "<string>",
"image": "<string>",
"email": "[email protected]",
"full_name": "<string>",
"name": "<string>",
"tier": "EDUCATION"
}
],
"reviewer_statuses": [
{
"user_id": "<string>",
"status": "requested",
"updated_at": 123
}
],
"merge_commit_id": 123,
"active_merge_id": "<string>",
"draft_commit_id": "<string>"
}
]
}List all reviews for a repository
curl --request GET \
--url https://api.diversion.dev/v0/repos/{repo_id}/reviews \
--header 'Authorization: Bearer <token>'{
"items": [
{
"id": "<string>",
"title": "<string>",
"status": "open",
"author": {
"id": "<string>",
"image": "<string>",
"email": "[email protected]",
"full_name": "<string>",
"name": "<string>",
"tier": "EDUCATION"
},
"created_at": 123,
"updated_at": 123,
"base_ref": "<string>",
"compare_ref": "<string>",
"repo_id": "<string>",
"description": "<string>",
"reviewers": [
{
"id": "<string>",
"image": "<string>",
"email": "[email protected]",
"full_name": "<string>",
"name": "<string>",
"tier": "EDUCATION"
}
],
"reviewer_statuses": [
{
"user_id": "<string>",
"status": "requested",
"updated_at": 123
}
],
"merge_commit_id": 123,
"active_merge_id": "<string>",
"draft_commit_id": "<string>"
}
]
}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"
Filter by review status
open, closed Filter by author ID
256Search reviews by title or description
256Reviews returned
Show child attributes
Review ID
Review title
Review status
open, closed 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 Unix timestamp when the review was created
Unix timestamp when the review was last updated
Base reference (branch/commit)
Compare reference (branch/commit)
Repository ID
Review description
List of reviewers
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 List of reviewer statuses
Show child attributes
Reviewer user ID
Reviewer's status
requested, approved, changes_requested, rejected Unix timestamp when the reviewer status was last updated
ID of the commit that merged this review
ID of active merge with conflicts
ID of the draft commit that created this review