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