GraphQL Queries Reference
Fetch unresolved review threads (paginated)
query($cursor: String) {
repository(owner: "OWNER", name: "REPO") {
pullRequest(number: PR_NUMBER) {
reviewThreads(first: 100, after: $cursor) {
pageInfo { hasNextPage endCursor }
nodes {
id
isResolved
comments(first: 3) {
nodes {
body
path
author { login }
createdAt
}
}
}
}
}
}
}Batch-resolve threads
mutation {
t1: resolveReviewThread(input: {threadId: "ID1"}) { thread { isResolved } }
t2: resolveReviewThread(input: {threadId: "ID2"}) { thread { isResolved } }
}For Greptile's summary comment, use the body returned by the review helper's
wait command (github.md). The helper only accepts a summary that
a trusted bot login updated after the trigger and that names the current head
commit.