MCPcopy Create free account
hub / github.com/ReviewStage/stage-cli / threadExists

Function threadExists

packages/cli/src/routes/comments.ts:268–277  ·  view source on GitHub ↗
(db: StageDb, threadId: string)

Source from the content-addressed store, hash-verified

266 .from(comment)
267 .where(eq(comment.id, commentId))
268 .limit(1)
269 .all();
270 return row?.threadId ?? null;
271}
272
273function resolveRunScopeKey(db: StageDb, runId: string | undefined): string | null {
274 if (!runId) return null;
275 const [run] = db
276 .select({
277 scopeKind: chapterRun.scopeKind,
278 workingTreeRef: chapterRun.workingTreeRef,
279 baseSha: chapterRun.baseSha,
280 headSha: chapterRun.headSha,

Callers 1

commentRoutesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected