Reviews
List reviews
GET /v1/reviews- Permission
read:reviews- Tokens
- API key, CLI user token, Session token
List code reviews newest first. Filter by repository, pull request number, and status, and page with limit and cursor.
Query parameters
repositoryarray<string>
Only reviews of these repositories, by name.
pull_request_numberarray<integer>
Only reviews of these pull request numbers.
statusarray<CodeReviewStatus>
Only reviews in these states.
startstring, date-time
Only reviews created at or after this time.
endstring, date-time
Only reviews created before this time.
limitdefault
50integercursorstring
The `next_cursor` of the previous page.
{
"has_more": bool,
"next_cursor": str,
}
1
import os
2
3
from ellipsis import Ellipsis
4
5
client = Ellipsis(api_key=os.environ["ELLIPSIS_API_TOKEN"])
6
7
for item in client.reviews.list():
8
print(item)
1
import { Ellipsis } from '@ellipsis-dev/sdk';
2
3
const client = new Ellipsis({
4
apiKey: process.env.ELLIPSIS_API_TOKEN!,
5
});
6
7
for await (const item of await client.reviews.list()) {
8
console.log(item);
9
}
1
curl "https://api.ellipsis.dev/v1/reviews" \
2
-H "Authorization: Bearer $ELLIPSIS_API_TOKEN"
Response
has_moredefault
falsebooleanWhether more results exist past this page.
next_cursorstring
Pass as `cursor` to fetch the next page. Null on the last page. Opaque , echo it back rather than parsing it.
reviewsarray<ReviewSummary>required