ReviewThread
Defined in: pulls/pulls.ts:179
One review thread — GraphQL-only (resolveReviewThread, the mutation
this exists to support, has no REST equivalent at all). id here is a
GraphQL node ID (PRRT_...), not the same numeric ID space as REST’s
review-comment id — pass it straight through to resolveReviewThread(),
never compare it against a REST-sourced ID.
Properties
Section titled “Properties”authorLogin
Section titled “authorLogin”authorLogin:
string|undefined
Defined in: pulls/pulls.ts:185
The thread’s first comment’s author login (e.g. "the-holocron-sentinel[bot]") — undefined if GitHub ever returns a thread with no comments, which shouldn’t happen in practice. Callers filter on this before resolving anything, so a bot never touches a human reviewer’s own thread.
body:
string|undefined
Defined in: pulls/pulls.ts:198
The thread’s first comment’s own body — the exact text a caller like
Sentinel posted for a specific finding. Lets a caller diff a prior
thread’s own content against the current push’s findings (holocron#860)
to decide whether that finding is still live, rather than only knowing
a thread exists. undefined in the same no-comments case as
authorLogin.
id:
string
Defined in: pulls/pulls.ts:181
The thread’s GraphQL node id.
isResolved
Section titled “isResolved”isResolved:
boolean
Defined in: pulls/pulls.ts:183
Whether the thread is resolved.
line:
number|null
Defined in: pulls/pulls.ts:189
1-indexed line the thread is anchored to — null in the same “can no longer place it” case as path.
path:
string|null
Defined in: pulls/pulls.ts:187
The file the thread is anchored to on the PR’s current diff — null once GitHub can no longer place it there (e.g. the file was since deleted).