Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

pullRequestReviews.graphql.ts

570 lines25.8 KB

1// Generated by @effect/graphql-generator from pullRequestReviews.graphql. Do not edit.
2import { GraphQL, GraphQLGroup } from "effect/graphql"
3import * as Schema from "effect/Schema"
4import * as Shared from "../../schema/github.graphql.ts"
5​
6/** A user is an individual's account on GitHub that owns repositories and can make new content. */
7export const NodesUser = Schema.Struct({
8 __typename: Schema.Literal("User"),
9 /** The username used to login. */
10 login: Schema.String
11})
12export interface NodesUser extends Schema.Struct.Type<typeof NodesUser.fields> {}
13​
14/** A special type of user which takes actions on behalf of GitHub Apps. */
15export const NodesBot = Schema.Struct({
16 __typename: Schema.Literal("Bot"),
17 /** The username of the actor. */
18 login: Schema.String
19})
20export interface NodesBot extends Schema.Struct.Type<typeof NodesBot.fields> {}
21​
22/** An account on GitHub, with one or more owners, that has repositories, members and teams. */
23export const Organization = Schema.Struct({
24 __typename: Schema.Literal("Organization"),
25 /** The organization's login name. */
26 login: Schema.String
27})
28export interface Organization extends Schema.Struct.Type<typeof Organization.fields> {}
29​
30/** A placeholder user for attribution of imported data on GitHub. */
31export const Mannequin = Schema.Struct({
32 __typename: Schema.Literal("Mannequin"),
33 /** The username of the actor. */
34 login: Schema.String
35})
36export interface Mannequin extends Schema.Struct.Type<typeof Mannequin.fields> {}
37​
38/** Types that can be assigned to reactions. */
39export const ReactorOther = Schema.Struct({
40 __typename: GraphQL.otherTypename<Shared.Typename.Reactor>()(["User", "Bot", "Organization", "Mannequin"])
41})
42export interface ReactorOther extends Schema.Struct.Type<typeof ReactorOther.fields> {}
43​
44/** The connection type for Reactor. */
45export const ReactorConnection = Schema.Struct({
46 /** Identifies the total count of items in the connection. */
47 totalCount: Shared.Int,
48 /** A list of nodes. */
49 nodes: Schema.NullOr(Schema.Array(Schema.NullOr(Schema.Union([
50 NodesUser,
51 NodesBot,
52 Organization,
53 Mannequin,
54 ReactorOther
55 ]))))
56})
57export interface ReactorConnection extends Schema.Struct.Type<typeof ReactorConnection.fields> {}
58​
59/** A group of emoji reactions to a particular piece of content. */
60export const ReactionGroup = Schema.Struct({
61 /** Identifies the emoji reaction. */
62 content: GraphQL.enumLiterals(Shared.ReactionContent.literals),
63 /** Whether or not the authenticated user has left a reaction on the subject. */
64 viewerHasReacted: Schema.Boolean,
65 /** Reactors to the reaction subject with the emotion represented by this reaction group. */
66 reactors: ReactorConnection
67})
68export interface ReactionGroup extends Schema.Struct.Type<typeof ReactionGroup.fields> {}
69​
70/**
71 * `fragment Reactions on Reactable`
72 *
73 * Represents a subject that can be reacted on.
74 */
75export const Reactions = Schema.Struct({
76 __typename: GraphQL.otherTypename<Shared.Typename.Reactable>()([]),
77 /** A list of reactions grouped by content left on the subject. */
78 reactionGroups: Schema.NullOr(Schema.Array(ReactionGroup))
79})
80export type Reactions = typeof Reactions.Type
81​
82/** Represents an object which can take actions on GitHub. Typically a User or Bot. */
83export const Actor = Schema.Struct({
84 __typename: GraphQL.otherTypename<Shared.Typename.Actor>()([]),
85 /** The username of the actor. */
86 login: Schema.String,
87 /** A URL pointing to the actor's public avatar. */
88 avatarUrl: Shared.URI
89})
90export interface Actor extends Schema.Struct.Type<typeof Actor.fields> {}
91​
92/**
93 * `fragment ThreadComment on PullRequestReviewComment`
94 *
95 * A review comment associated with a given repository pull request.
96 */
97export const ThreadComment = Schema.Struct({
98 /** The Node ID of the PullRequestReviewComment object */
99 id: Shared.ID,
100 /** The actor who authored the comment. */
101 author: Schema.NullOr(Actor),
102 /** The comment body of this review comment. */
103 body: Schema.String,
104 /** Identifies when the comment was created. */
105 createdAt: Shared.DateTime,
106 /** The moment the editor made the last edit */
107 lastEditedAt: Schema.NullOr(Shared.DateTime),
108 /** The HTTP URL permalink for this review comment. */
109 url: Shared.URI,
110 /** A list of reactions grouped by content left on the subject. */
111 reactionGroups: Schema.NullOr(Schema.Array(ReactionGroup))
112})
113export interface ThreadComment extends Schema.Struct.Type<typeof ThreadComment.fields> {}
114​
115/** A user is an individual's account on GitHub that owns repositories and can make new content. */
116export const ViewerUser = Schema.Struct({
117 /** The username used to login. */
118 login: Schema.String
119})
120export interface ViewerUser extends Schema.Struct.Type<typeof ViewerUser.fields> {}
121​
122/** Information about pagination in a connection. */
123export const PageInfo = Schema.Struct({
124 /** When paginating forwards, are there more items? */
125 hasNextPage: Schema.Boolean,
126 /** When paginating forwards, the cursor to continue. */
127 endCursor: Schema.NullOr(Schema.String)
128})
129export interface PageInfo extends Schema.Struct.Type<typeof PageInfo.fields> {}
130​
131/** The connection type for PullRequestReviewComment. */
132export const NodesCommentsPullRequestReviewCommentConnection = Schema.Struct({
133 /** Identifies the total count of items in the connection. */
134 totalCount: Shared.Int,
135 /** Information to aid in pagination. */
136 pageInfo: PageInfo,
137 /** A list of nodes. */
138 nodes: Schema.NullOr(Schema.Array(Schema.NullOr(ThreadComment)))
139})
140export interface NodesCommentsPullRequestReviewCommentConnection extends Schema.Struct.Type<typeof NodesCommentsPullRequestReviewCommentConnection.fields> {}
141​
142/** A threaded list of comments for a given pull request. */
143export const NodesPullRequestReviewThread = Schema.Struct({
144 /** The Node ID of the PullRequestReviewThread object */
145 id: Shared.ID,
146 /** Whether this thread has been resolved */
147 isResolved: Schema.Boolean,
148 /** Indicates whether this thread was outdated by newer changes. */
149 isOutdated: Schema.Boolean,
150 /** Identifies the file path of this thread. */
151 path: Schema.String,
152 /** The line in the file to which this thread refers */
153 line: Schema.NullOr(Shared.Int),
154 /** The side of the diff on which this thread was placed. */
155 diffSide: GraphQL.enumLiterals(Shared.DiffSide.literals),
156 /** A list of pull request comments associated with the thread. */
157 comments: NodesCommentsPullRequestReviewCommentConnection
158})
159export interface NodesPullRequestReviewThread extends Schema.Struct.Type<typeof NodesPullRequestReviewThread.fields> {}
160​
161/** Review comment threads for a pull request review. */
162export const PullRequestReviewThreadConnection = Schema.Struct({
163 /** Identifies the total count of items in the connection. */
164 totalCount: Shared.Int,
165 /** Information to aid in pagination. */
166 pageInfo: PageInfo,
167 /** A list of nodes. */
168 nodes: Schema.NullOr(Schema.Array(Schema.NullOr(NodesPullRequestReviewThread)))
169})
170export interface PullRequestReviewThreadConnection extends Schema.Struct.Type<typeof PullRequestReviewThreadConnection.fields> {}
171​
172/** Represents a comment on an Issue. */
173export const IssueComment = Schema.Struct({
174 /** The Node ID of the IssueComment object */
175 id: Shared.ID,
176 /** The moment the editor made the last edit */
177 lastEditedAt: Schema.NullOr(Shared.DateTime),
178 /** The actor who authored the comment. */
179 author: Schema.NullOr(Actor),
180 /** A list of reactions grouped by content left on the subject. */
181 reactionGroups: Schema.NullOr(Schema.Array(ReactionGroup))
182})
183export interface IssueComment extends Schema.Struct.Type<typeof IssueComment.fields> {}
184​
185/** The connection type for IssueComment. */
186export const IssueCommentConnection = Schema.Struct({
187 /** A list of nodes. */
188 nodes: Schema.NullOr(Schema.Array(Schema.NullOr(IssueComment)))
189})
190export interface IssueCommentConnection extends Schema.Struct.Type<typeof IssueCommentConnection.fields> {}
191​
192/** A review object for a given pull request. */
193export const ReviewsNodesPullRequestReview = Schema.Struct({
194 /** The Node ID of the PullRequestReview object */
195 id: Shared.ID,
196 /** The moment the editor made the last edit */
197 lastEditedAt: Schema.NullOr(Shared.DateTime),
198 /** The actor who authored the comment. */
199 author: Schema.NullOr(Actor),
200 /** A list of reactions grouped by content left on the subject. */
201 reactionGroups: Schema.NullOr(Schema.Array(ReactionGroup))
202})
203export interface ReviewsNodesPullRequestReview extends Schema.Struct.Type<typeof ReviewsNodesPullRequestReview.fields> {}
204​
205/** The connection type for PullRequestReview. */
206export const ReviewsPullRequestReviewConnection = Schema.Struct({
207 /** A list of nodes. */
208 nodes: Schema.NullOr(Schema.Array(Schema.NullOr(ReviewsNodesPullRequestReview)))
209})
210export interface ReviewsPullRequestReviewConnection extends Schema.Struct.Type<typeof ReviewsPullRequestReviewConnection.fields> {}
211​
212/** A user is an individual's account on GitHub that owns repositories and can make new content. */
213export const RequestedReviewerUser = Schema.Struct({
214 __typename: Schema.Literal("User"),
215 /** The username used to login. */
216 login: Schema.String,
217 /** The user's public profile name. */
218 name: Schema.NullOr(Schema.String),
219 /** A URL pointing to the user's public avatar. */
220 avatarUrl: Shared.URI
221})
222export interface RequestedReviewerUser extends Schema.Struct.Type<typeof RequestedReviewerUser.fields> {}
223​
224/** A special type of user which takes actions on behalf of GitHub Apps. */
225export const RequestedReviewerBot = Schema.Struct({
226 __typename: Schema.Literal("Bot"),
227 /** The username of the actor. */
228 login: Schema.String,
229 /** A URL pointing to the GitHub App's public avatar. */
230 avatarUrl: Shared.URI
231})
232export interface RequestedReviewerBot extends Schema.Struct.Type<typeof RequestedReviewerBot.fields> {}
233​
234/** A team of users in an organization. */
235export const Team = Schema.Struct({
236 __typename: Schema.Literal("Team"),
237 /** The slug corresponding to the organization and team. */
238 combinedSlug: Schema.String,
239 /** The name of the team. */
240 teamName: Schema.String,
241 /** A URL pointing to the team's avatar. */
242 teamAvatarUrl: Schema.NullOr(Shared.URI)
243})
244export interface Team extends Schema.Struct.Type<typeof Team.fields> {}
245​
246/** Types that can be requested reviewers. */
247export const RequestedReviewerOther = Schema.Struct({
248 __typename: GraphQL.otherTypename<Shared.Typename.RequestedReviewer>()(["User", "Bot", "Team"])
249})
250export interface RequestedReviewerOther extends Schema.Struct.Type<typeof RequestedReviewerOther.fields> {}
251​
252/** A request for a user to review a pull request. */
253export const ReviewRequest = Schema.Struct({
254 /** The reviewer that is requested. */
255 requestedReviewer: Schema.NullOr(Schema.Union([
256 RequestedReviewerUser,
257 RequestedReviewerBot,
258 Team,
259 RequestedReviewerOther
260 ]))
261})
262export interface ReviewRequest extends Schema.Struct.Type<typeof ReviewRequest.fields> {}
263​
264/** The connection type for ReviewRequest. */
265export const ReviewRequestConnection = Schema.Struct({
266 /** A list of nodes. */
267 nodes: Schema.NullOr(Schema.Array(Schema.NullOr(ReviewRequest)))
268})
269export interface ReviewRequestConnection extends Schema.Struct.Type<typeof ReviewRequestConnection.fields> {}
270​
271/** A review object for a given pull request. */
272export const LatestReviewsNodesPullRequestReview = Schema.Struct({
273 /** Identifies the current state of the pull request review. */
274 state: GraphQL.enumLiterals(Shared.PullRequestReviewState.literals),
275 /** The actor who authored the comment. */
276 author: Schema.NullOr(Actor)
277})
278export interface LatestReviewsNodesPullRequestReview extends Schema.Struct.Type<typeof LatestReviewsNodesPullRequestReview.fields> {}
279​
280/** The connection type for PullRequestReview. */
281export const LatestReviewsPullRequestReviewConnection = Schema.Struct({
282 /** A list of nodes. */
283 nodes: Schema.NullOr(Schema.Array(Schema.NullOr(LatestReviewsNodesPullRequestReview)))
284})
285export interface LatestReviewsPullRequestReviewConnection extends Schema.Struct.Type<typeof LatestReviewsPullRequestReviewConnection.fields> {}
286​
287/** A review object for a given pull request. */
288export const ReviewPullRequestReview = Schema.Struct({
289 /** The Node ID of the PullRequestReview object */
290 id: Shared.ID
291})
292export interface ReviewPullRequestReview extends Schema.Struct.Type<typeof ReviewPullRequestReview.fields> {}
293​
294/** Represents a 'review_dismissed' event on a given issue or pull request. */
295export const ReviewDismissedEvent = Schema.Struct({
296 __typename: Schema.Literal("ReviewDismissedEvent"),
297 /** Identifies the optional message associated with the 'review_dismissed' event. */
298 dismissalMessage: Schema.NullOr(Schema.String),
299 /** Identifies the review associated with the 'review_dismissed' event. */
300 review: Schema.NullOr(ReviewPullRequestReview)
301})
302export interface ReviewDismissedEvent extends Schema.Struct.Type<typeof ReviewDismissedEvent.fields> {}
303​
304/** An item in a pull request timeline */
305export const PullRequestTimelineItemsOther = Schema.Struct({
306 __typename: GraphQL.otherTypename<Shared.Typename.PullRequestTimelineItems>()(["ReviewDismissedEvent"])
307})
308export interface PullRequestTimelineItemsOther extends Schema.Struct.Type<typeof PullRequestTimelineItemsOther.fields> {}
309​
310/** The connection type for PullRequestTimelineItems. */
311export const PullRequestTimelineItemsConnection = Schema.Struct({
312 /** Information to aid in pagination. */
313 pageInfo: PageInfo,
314 /** A list of nodes. */
315 nodes: Schema.NullOr(Schema.Array(Schema.NullOr(Schema.Union([
316 ReviewDismissedEvent,
317 PullRequestTimelineItemsOther
318 ]))))
319})
320export interface PullRequestTimelineItemsConnection extends Schema.Struct.Type<typeof PullRequestTimelineItemsConnection.fields> {}
321​
322/** Represents an actor in a Git commit (ie. an author or committer). */
323export const GitActor = Schema.Struct({
324 /** The name in the Git commit. */
325 name: Schema.NullOr(Schema.String),
326 /** A URL pointing to the author's public avatar. */
327 avatarUrl: Shared.URI,
328 /** The GitHub user corresponding to the email field. Null if no such user exists. */
329 user: Schema.NullOr(ViewerUser)
330})
331export interface GitActor extends Schema.Struct.Type<typeof GitActor.fields> {}
332​
333/** The connection type for GitActor. */
334export const GitActorConnection = Schema.Struct({
335 /** A list of nodes. */
336 nodes: Schema.NullOr(Schema.Array(Schema.NullOr(GitActor)))
337})
338export interface GitActorConnection extends Schema.Struct.Type<typeof GitActorConnection.fields> {}
339​
340/** Represents a Git commit. */
341export const Commit = Schema.Struct({
342 /** The Git object ID */
343 oid: Shared.GitObjectID,
344 /** The Git commit message headline */
345 messageHeadline: Schema.String,
346 /** The datetime when this commit was committed. */
347 committedDate: Shared.DateTime,
348 /**
349 * The list of authors for this commit based on the git author and the Co-authored-by
350 * message trailer. The git author will always be first.
351 */
352 authors: GitActorConnection
353})
354export interface Commit extends Schema.Struct.Type<typeof Commit.fields> {}
355​
356/** Represents a Git commit part of a pull request. */
357export const PullRequestCommit = Schema.Struct({
358 /** The Git commit object */
359 commit: Commit
360})
361export interface PullRequestCommit extends Schema.Struct.Type<typeof PullRequestCommit.fields> {}
362​
363/** The connection type for PullRequestCommit. */
364export const PullRequestCommitConnection = Schema.Struct({
365 /** A list of nodes. */
366 nodes: Schema.NullOr(Schema.Array(Schema.NullOr(PullRequestCommit)))
367})
368export interface PullRequestCommitConnection extends Schema.Struct.Type<typeof PullRequestCommitConnection.fields> {}
369​
370/** A repository pull request. */
371export const ReviewThreadsRepositoryPullRequestPullRequest = Schema.Struct({
372 /** The list of all review threads for this pull request. */
373 reviewThreads: PullRequestReviewThreadConnection,
374 /** Check if the current viewer can update this object. */
375 viewerCanUpdate: Schema.Boolean,
376 /** Did the viewer author this comment. */
377 viewerDidAuthor: Schema.Boolean,
378 /** The actor who authored the comment. */
379 author: Schema.NullOr(Actor),
380 /** A list of reactions grouped by content left on the subject. */
381 reactionGroups: Schema.NullOr(Schema.Array(ReactionGroup)),
382 /** A list of comments associated with the pull request. */
383 comments: IssueCommentConnection,
384 /** A list of reviews associated with the pull request. */
385 reviews: Schema.NullOr(ReviewsPullRequestReviewConnection),
386 /** A list of review requests associated with the pull request. */
387 reviewRequests: Schema.NullOr(ReviewRequestConnection),
388 /** A list of latest reviews per user associated with the pull request that are not also pending review. */
389 latestReviews: Schema.NullOr(LatestReviewsPullRequestReviewConnection),
390 /** A list of events, comments, commits, etc. associated with the pull request. */
391 reviewDismissals: PullRequestTimelineItemsConnection,
392 /** A list of commits present in this pull request's head branch not present in the base branch. */
393 commits: PullRequestCommitConnection
394})
395export interface ReviewThreadsRepositoryPullRequestPullRequest extends Schema.Struct.Type<typeof ReviewThreadsRepositoryPullRequestPullRequest.fields> {}
396​
397/** A repository contains the content for a project. */
398export const ReviewThreadsRepositoryRepository = Schema.Struct({
399 /** Returns a single pull request from the current repository by number. */
400 pullRequest: Schema.NullOr(ReviewThreadsRepositoryPullRequestPullRequest)
401})
402export interface ReviewThreadsRepositoryRepository extends Schema.Struct.Type<typeof ReviewThreadsRepositoryRepository.fields> {}
403​
404/** `query ReviewThreads` */
405export const ReviewThreads = GraphQL.query("ReviewThreads", {
406 document: {
407 variables: [
408 { name: "owner", body: "String!" },
409 { name: "name", body: "String!" },
410 { name: "number", body: "Int!" },
411 { name: "after", body: "String" },
412 { name: "requestedReviewers", body: "Int!" }
413 ],
414 selections: [
415 { name: "viewer", body: ["{login}"] },
416 { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){pullRequest(number:$", "number", "){reviewThreads(first:100 after:$", "after", "){totalCount pageInfo{hasNextPage endCursor}nodes{id isResolved isOutdated path line diffSide comments(first:10){totalCount pageInfo{hasNextPage endCursor}nodes{...ThreadComment}}}}viewerCanUpdate viewerDidAuthor author{__typename login avatarUrl}...Reactions comments(first:100){nodes{id lastEditedAt author{__typename login avatarUrl}...Reactions}}reviews(first:100){nodes{id lastEditedAt author{__typename login avatarUrl}...Reactions}}reviewRequests(first:$", "requestedReviewers", "){nodes{requestedReviewer{__typename...on User{login name avatarUrl}...on Bot{login avatarUrl}...on Team{combinedSlug teamName:name teamAvatarUrl:avatarUrl}}}}latestReviews(first:50){nodes{state author{__typename login avatarUrl}}}reviewDismissals:timelineItems(itemTypes:[REVIEW_DISMISSED_EVENT]first:100){pageInfo{hasNextPage endCursor}nodes{__typename...on ReviewDismissedEvent{dismissalMessage review{id}}}}commits(last:100){nodes{commit{oid messageHeadline committedDate authors(first:3){nodes{name avatarUrl user{login}}}}}}}}"] }
417 ],
418 fragments: [
419 { name: "ThreadComment", body: ["on PullRequestReviewComment{id author{__typename login avatarUrl}body createdAt lastEditedAt url...Reactions}"] },
420 { name: "Reactions", body: ["on Reactable{__typename reactionGroups{content viewerHasReacted reactors(first:10){totalCount nodes{__typename...on User{login}...on Bot{login}...on Organization{login}...on Mannequin{login}}}}}"] }
421 ]
422 },
423 variables: {
424 owner: Schema.String,
425 name: Schema.String,
426 number: Shared.Int,
427 after: Schema.optional(Schema.NullOr(Schema.String)),
428 requestedReviewers: Shared.Int
429 },
430 result: Schema.Struct({
431 /** The currently authenticated user. */
432 viewer: ViewerUser,
433 /** Lookup a given repository by the owner and repository name. */
434 repository: Schema.NullOr(ReviewThreadsRepositoryRepository)
435 })
436})
437export declare namespace ReviewThreads {
438 export type Variables = typeof ReviewThreads.variables.Type
439 export type Result = typeof ReviewThreads.result.Type
441​
442/** A repository pull request. */
443export const ReviewThreadCommentsRepositoryPullRequestPullRequest = Schema.Struct({
444 /** The Node ID of the PullRequest object */
445 id: Shared.ID
446})
447export interface ReviewThreadCommentsRepositoryPullRequestPullRequest extends Schema.Struct.Type<typeof ReviewThreadCommentsRepositoryPullRequestPullRequest.fields> {}
448​
449/** A repository contains the content for a project. */
450export const ReviewThreadCommentsRepositoryRepository = Schema.Struct({
451 /** Returns a single pull request from the current repository by number. */
452 pullRequest: Schema.NullOr(ReviewThreadCommentsRepositoryPullRequestPullRequest)
453})
454export interface ReviewThreadCommentsRepositoryRepository extends Schema.Struct.Type<typeof ReviewThreadCommentsRepositoryRepository.fields> {}
455​
456/** The connection type for PullRequestReviewComment. */
457export const NodeCommentsPullRequestReviewCommentConnection = Schema.Struct({
458 /** Information to aid in pagination. */
459 pageInfo: PageInfo,
460 /** A list of nodes. */
461 nodes: Schema.NullOr(Schema.Array(Schema.NullOr(ThreadComment)))
462})
463export interface NodeCommentsPullRequestReviewCommentConnection extends Schema.Struct.Type<typeof NodeCommentsPullRequestReviewCommentConnection.fields> {}
464​
465/** A threaded list of comments for a given pull request. */
466export const NodePullRequestReviewThread = Schema.Struct({
467 __typename: Schema.Literal("PullRequestReviewThread"),
468 /** Identifies the pull request associated with this thread. */
469 pullRequest: ReviewThreadCommentsRepositoryPullRequestPullRequest,
470 /** A list of pull request comments associated with the thread. */
471 comments: NodeCommentsPullRequestReviewCommentConnection
472})
473export interface NodePullRequestReviewThread extends Schema.Struct.Type<typeof NodePullRequestReviewThread.fields> {}
474​
475/** An object with an ID. */
476export const NodeOther = Schema.Struct({
477 __typename: GraphQL.otherTypename<Shared.Typename.Node>()(["PullRequestReviewThread"])
478})
479export interface NodeOther extends Schema.Struct.Type<typeof NodeOther.fields> {}
480​
481/** `query ReviewThreadComments` */
482export const ReviewThreadComments = GraphQL.query("ReviewThreadComments", {
483 document: {
484 variables: [
485 { name: "owner", body: "String!" },
486 { name: "name", body: "String!" },
487 { name: "number", body: "Int!" },
488 { name: "threadId", body: "ID!" },
489 { name: "after", body: "String" }
490 ],
491 selections: [
492 { name: "viewer", body: ["{login}"] },
493 { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){pullRequest(number:$", "number", "){id}}"] },
494 { name: "node", body: ["(id:$", "threadId", "){__typename...on PullRequestReviewThread{pullRequest{id}comments(first:100 after:$", "after", "){pageInfo{hasNextPage endCursor}nodes{...ThreadComment}}}}"] }
495 ],
496 fragments: [
497 { name: "ThreadComment", body: ["on PullRequestReviewComment{id author{__typename login avatarUrl}body createdAt lastEditedAt url...Reactions}"] },
498 { name: "Reactions", body: ["on Reactable{__typename reactionGroups{content viewerHasReacted reactors(first:10){totalCount nodes{__typename...on User{login}...on Bot{login}...on Organization{login}...on Mannequin{login}}}}}"] }
499 ]
500 },
501 variables: {
502 owner: Schema.String,
503 name: Schema.String,
504 number: Shared.Int,
505 threadId: Shared.ID,
506 after: Schema.optional(Schema.NullOr(Schema.String))
507 },
508 result: Schema.Struct({
509 /** The currently authenticated user. */
510 viewer: ViewerUser,
511 /** Lookup a given repository by the owner and repository name. */
512 repository: Schema.NullOr(ReviewThreadCommentsRepositoryRepository),
513 /** Fetches an object given its ID. */
514 node: Schema.NullOr(Schema.Union([
515 NodePullRequestReviewThread,
516 NodeOther
517 ]))
518 })
519})
520export declare namespace ReviewThreadComments {
521 export type Variables = typeof ReviewThreadComments.variables.Type
522 export type Result = typeof ReviewThreadComments.result.Type
524​
525/** A repository pull request. */
526export const ReviewDismissalsRepositoryPullRequestPullRequest = Schema.Struct({
527 /** A list of events, comments, commits, etc. associated with the pull request. */
528 timelineItems: PullRequestTimelineItemsConnection
529})
530export interface ReviewDismissalsRepositoryPullRequestPullRequest extends Schema.Struct.Type<typeof ReviewDismissalsRepositoryPullRequestPullRequest.fields> {}
531​
532/** A repository contains the content for a project. */
533export const ReviewDismissalsRepositoryRepository = Schema.Struct({
534 /** Returns a single pull request from the current repository by number. */
535 pullRequest: Schema.NullOr(ReviewDismissalsRepositoryPullRequestPullRequest)
536})
537export interface ReviewDismissalsRepositoryRepository extends Schema.Struct.Type<typeof ReviewDismissalsRepositoryRepository.fields> {}
538​
539/** `query ReviewDismissals` */
540export const ReviewDismissals = GraphQL.query("ReviewDismissals", {
541 document: {
542 variables: [
543 { name: "owner", body: "String!" },
544 { name: "name", body: "String!" },
545 { name: "number", body: "Int!" },
546 { name: "after", body: "String" }
547 ],
548 selections: [
549 { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){pullRequest(number:$", "number", "){timelineItems(itemTypes:[REVIEW_DISMISSED_EVENT]first:100 after:$", "after", "){pageInfo{hasNextPage endCursor}nodes{__typename...on ReviewDismissedEvent{dismissalMessage review{id}}}}}}"] }
550 ],
551 fragments: []
552 },
553 variables: {
554 owner: Schema.String,
555 name: Schema.String,
556 number: Shared.Int,
557 after: Schema.optional(Schema.NullOr(Schema.String))
558 },
559 result: Schema.Struct({
560 /** Lookup a given repository by the owner and repository name. */
561 repository: Schema.NullOr(ReviewDismissalsRepositoryRepository)
562 })
563})
564export declare namespace ReviewDismissals {
565 export type Variables = typeof ReviewDismissals.variables.Type
566 export type Result = typeof ReviewDismissals.result.Type
568​
569/** Every operation in pullRequestReviews.graphql. */
570export const PullRequestReviewsGraphQLGroup = GraphQLGroup.make(ReviewThreads, ReviewThreadComments, ReviewDismissals)