export interface RawAuthor { __typename?: string; login: string; } interface RawSummaryComment { id: string; body: string; isMinimized: boolean; viewerDidAuthor?: boolean; authorAssociation?: string; url?: string; author: RawAuthor | null; } interface SummaryConnection { totalCount: number; pageInfo: { hasPreviousPage: boolean; }; nodes: T[]; } type RawCheckContext = { __typename: "CheckRun"; id?: string; name: string; status: string; conclusion: string | null; detailsUrl?: string; annotations?: { totalCount: number; }; checkSuite: { workflowRun: { databaseId?: string | number; event: string; workflow?: { name: string; databaseId: string | number; } | null; } | null; } | null; } | { __typename: "StatusContext"; context: string; state: string; }; interface RawCheckRollup { contexts: SummaryConnection; } export interface RawSummaryPr { number: number; title: string; url: string; state: string; updatedAt?: string; lifecycleEvents?: { nodes: Array<{ __typename: string; createdAt: string; }>; } | null; isDraft: boolean; viewerCanUpdate: boolean; headRefName: string; headRefOid: string; baseRefOid: string; baseRefName: string; mergeable: string; mergeStateStatus: string; reviewDecision: string | null; reviewRequests?: { nodes: Array<{ requestedReviewer: RawAuthor | null; }>; }; latestReviews?: { nodes: Array<{ state: string; author: RawAuthor | null; }>; }; isInMergeQueue: boolean; mergeQueueAdditions?: { nodes: Array<{ createdAt: string; }>; } | null; mergeQueueRemovals?: { nodes: Array<{ id?: string; reason: string | null; createdAt: string; actor: { login: string; } | null; beforeCommit: { oid: string; parents: { nodes: Array<{ oid: string; }>; } | null; } | null; }>; } | null; mergeQueueEntry: { headCommit: { statusCheckRollup: RawCheckRollup | null; } | null; } | null; stack: { number: number; size: number; baseRefName: string; } | null; stackEntry: { position: number; } | null; comments: SummaryConnection; reviews: SummaryConnection; reviewThreads: SummaryConnection<{ id: string; isResolved: boolean; isOutdated: boolean; path: string | null; rootComments?: { nodes: RawSummaryComment[]; }; comments: SummaryConnection; }>; commits: { nodes: Array<{ commit: { statusCheckRollup: RawCheckRollup | null; }; }>; }; } export interface RawExplicitResponse { repository: ({ viewerCanAdminister: boolean; } & Record) | null; } export interface RawStackResponse { repository: { viewerCanAdminister: boolean; pullRequest: { stack: { id: string; number: number; size: number; baseRefName: string; entries: { pageInfo: { hasNextPage: boolean; endCursor: string | null; }; nodes: Array<{ position: number; pullRequest: RawSummaryPr | null; }>; }; } | null; } | null; } | null; } export {};