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

pullRequestReviews.graphql.ts

581 lines26.2 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/** The connection type for Commit. */
323export const CommitConnection = Schema.Struct({
324 /** Identifies the total count of items in the connection. */
325 totalCount: Shared.Int
326})
327export interface CommitConnection extends Schema.Struct.Type<typeof CommitConnection.fields> {}
328​
329/** Represents an actor in a Git commit (ie. an author or committer). */
330export const GitActor = Schema.Struct({
331 /** The name in the Git commit. */
332 name: Schema.NullOr(Schema.String),
333 /** A URL pointing to the author's public avatar. */
334 avatarUrl: Shared.URI,
335 /** The GitHub user corresponding to the email field. Null if no such user exists. */
336 user: Schema.NullOr(ViewerUser)
337})
338export interface GitActor extends Schema.Struct.Type<typeof GitActor.fields> {}
339​
340/** The connection type for GitActor. */
341export const GitActorConnection = Schema.Struct({
342 /** A list of nodes. */
343 nodes: Schema.NullOr(Schema.Array(Schema.NullOr(GitActor)))
344})
345export interface GitActorConnection extends Schema.Struct.Type<typeof GitActorConnection.fields> {}
346​
347/** Represents a Git commit. */
348export const Commit = Schema.Struct({
349 /** The Git object ID */
350 oid: Shared.GitObjectID,
351 /** The Git commit message headline */
352 messageHeadline: Schema.String,
353 /** The datetime when this commit was committed. */
354 committedDate: Shared.DateTime,
355 /** The number of additions in this commit. */
356 additions: Shared.Int,
357 /** The number of deletions in this commit. */
358 deletions: Shared.Int,
359 /** The parents of a commit. */
360 parents: CommitConnection,
361 /**
362 * The list of authors for this commit based on the git author and the Co-authored-by
363 * message trailer. The git author will always be first.
364 */
365 authors: GitActorConnection
366})
367export interface Commit extends Schema.Struct.Type<typeof Commit.fields> {}
368​
369/** Represents a Git commit part of a pull request. */
370export const PullRequestCommit = Schema.Struct({
371 /** The Git commit object */
372 commit: Commit
373})
374export interface PullRequestCommit extends Schema.Struct.Type<typeof PullRequestCommit.fields> {}
375​
376/** The connection type for PullRequestCommit. */
377export const PullRequestCommitConnection = Schema.Struct({
378 /** A list of nodes. */
379 nodes: Schema.NullOr(Schema.Array(Schema.NullOr(PullRequestCommit)))
380})
381export interface PullRequestCommitConnection extends Schema.Struct.Type<typeof PullRequestCommitConnection.fields> {}
382​
383/** A repository pull request. */
384export const ReviewThreadsRepositoryPullRequestPullRequest = Schema.Struct({
385 /** The list of all review threads for this pull request. */
386 reviewThreads: PullRequestReviewThreadConnection,
387 /** Check if the current viewer can update this object. */
388 viewerCanUpdate: Schema.Boolean,
389 /** Did the viewer author this comment. */
390 viewerDidAuthor: Schema.Boolean,
391 /** The actor who authored the comment. */
392 author: Schema.NullOr(Actor),
393 /** A list of reactions grouped by content left on the subject. */
394 reactionGroups: Schema.NullOr(Schema.Array(ReactionGroup)),
395 /** A list of comments associated with the pull request. */
396 comments: IssueCommentConnection,
397 /** A list of reviews associated with the pull request. */
398 reviews: Schema.NullOr(ReviewsPullRequestReviewConnection),
399 /** A list of review requests associated with the pull request. */
400 reviewRequests: Schema.NullOr(ReviewRequestConnection),
401 /** A list of latest reviews per user associated with the pull request that are not also pending review. */
402 latestReviews: Schema.NullOr(LatestReviewsPullRequestReviewConnection),
403 /** A list of events, comments, commits, etc. associated with the pull request. */
404 reviewDismissals: PullRequestTimelineItemsConnection,
405 /** A list of commits present in this pull request's head branch not present in the base branch. */
406 commits: PullRequestCommitConnection
407})
408export interface ReviewThreadsRepositoryPullRequestPullRequest extends Schema.Struct.Type<typeof ReviewThreadsRepositoryPullRequestPullRequest.fields> {}
409​
410/** A repository contains the content for a project. */
411export const ReviewThreadsRepositoryRepository = Schema.Struct({
412 /** Returns a single pull request from the current repository by number. */
413 pullRequest: Schema.NullOr(ReviewThreadsRepositoryPullRequestPullRequest)
414})
415export interface ReviewThreadsRepositoryRepository extends Schema.Struct.Type<typeof ReviewThreadsRepositoryRepository.fields> {}
416​
417/** `query ReviewThreads` */
418export const ReviewThreads = GraphQL.query("ReviewThreads", {
419 document: {
420 variables: [
421 { name: "owner", body: "String!" },
422 { name: "name", body: "String!" },
423 { name: "number", body: "Int!" },
424 { name: "after", body: "String" }
425 ],
426 selections: [
427 { name: "viewer", body: ["{login}"] },
428 { 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:50){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 additions deletions parents(first:1){totalCount}authors(first:3){nodes{name avatarUrl user{login}}}}}}}}"] }
429 ],
430 fragments: [
431 { name: "ThreadComment", body: ["on PullRequestReviewComment{id author{__typename login avatarUrl}body createdAt lastEditedAt url...Reactions}"] },
432 { 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}}}}}"] }
433 ]
434 },
435 variables: {
436 owner: Schema.String,
437 name: Schema.String,
438 number: Shared.Int,
439 after: Schema.optional(Schema.NullOr(Schema.String))
440 },
441 result: Schema.Struct({
442 /** The currently authenticated user. */
443 viewer: ViewerUser,
444 /** Lookup a given repository by the owner and repository name. */
445 repository: Schema.NullOr(ReviewThreadsRepositoryRepository)
446 })
447})
448export declare namespace ReviewThreads {
449 export type Variables = typeof ReviewThreads.variables.Type
450 export type Result = typeof ReviewThreads.result.Type
452​
453/** A repository pull request. */
454export const ReviewThreadCommentsRepositoryPullRequestPullRequest = Schema.Struct({
455 /** The Node ID of the PullRequest object */
456 id: Shared.ID
457})
458export interface ReviewThreadCommentsRepositoryPullRequestPullRequest extends Schema.Struct.Type<typeof ReviewThreadCommentsRepositoryPullRequestPullRequest.fields> {}
459​
460/** A repository contains the content for a project. */
461export const ReviewThreadCommentsRepositoryRepository = Schema.Struct({
462 /** Returns a single pull request from the current repository by number. */
463 pullRequest: Schema.NullOr(ReviewThreadCommentsRepositoryPullRequestPullRequest)
464})
465export interface ReviewThreadCommentsRepositoryRepository extends Schema.Struct.Type<typeof ReviewThreadCommentsRepositoryRepository.fields> {}
466​
467/** The connection type for PullRequestReviewComment. */
468export const NodeCommentsPullRequestReviewCommentConnection = Schema.Struct({
469 /** Information to aid in pagination. */
470 pageInfo: PageInfo,
471 /** A list of nodes. */
472 nodes: Schema.NullOr(Schema.Array(Schema.NullOr(ThreadComment)))
473})
474export interface NodeCommentsPullRequestReviewCommentConnection extends Schema.Struct.Type<typeof NodeCommentsPullRequestReviewCommentConnection.fields> {}
475​
476/** A threaded list of comments for a given pull request. */
477export const NodePullRequestReviewThread = Schema.Struct({
478 __typename: Schema.Literal("PullRequestReviewThread"),
479 /** Identifies the pull request associated with this thread. */
480 pullRequest: ReviewThreadCommentsRepositoryPullRequestPullRequest,
481 /** A list of pull request comments associated with the thread. */
482 comments: NodeCommentsPullRequestReviewCommentConnection
483})
484export interface NodePullRequestReviewThread extends Schema.Struct.Type<typeof NodePullRequestReviewThread.fields> {}
485​
486/** An object with an ID. */
487export const NodeOther = Schema.Struct({
488 __typename: GraphQL.otherTypename<Shared.Typename.Node>()(["PullRequestReviewThread"])
489})
490export interface NodeOther extends Schema.Struct.Type<typeof NodeOther.fields> {}
491​
492/** `query ReviewThreadComments` */
493export const ReviewThreadComments = GraphQL.query("ReviewThreadComments", {
494 document: {
495 variables: [
496 { name: "owner", body: "String!" },
497 { name: "name", body: "String!" },
498 { name: "number", body: "Int!" },
499 { name: "threadId", body: "ID!" },
500 { name: "after", body: "String" }
501 ],
502 selections: [
503 { name: "viewer", body: ["{login}"] },
504 { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){pullRequest(number:$", "number", "){id}}"] },
505 { name: "node", body: ["(id:$", "threadId", "){__typename...on PullRequestReviewThread{pullRequest{id}comments(first:100 after:$", "after", "){pageInfo{hasNextPage endCursor}nodes{...ThreadComment}}}}"] }
506 ],
507 fragments: [
508 { name: "ThreadComment", body: ["on PullRequestReviewComment{id author{__typename login avatarUrl}body createdAt lastEditedAt url...Reactions}"] },
509 { 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}}}}}"] }
510 ]
511 },
512 variables: {
513 owner: Schema.String,
514 name: Schema.String,
515 number: Shared.Int,
516 threadId: Shared.ID,
517 after: Schema.optional(Schema.NullOr(Schema.String))
518 },
519 result: Schema.Struct({
520 /** The currently authenticated user. */
521 viewer: ViewerUser,
522 /** Lookup a given repository by the owner and repository name. */
523 repository: Schema.NullOr(ReviewThreadCommentsRepositoryRepository),
524 /** Fetches an object given its ID. */
525 node: Schema.NullOr(Schema.Union([
526 NodePullRequestReviewThread,
527 NodeOther
528 ]))
529 })
530})
531export declare namespace ReviewThreadComments {
532 export type Variables = typeof ReviewThreadComments.variables.Type
533 export type Result = typeof ReviewThreadComments.result.Type
535​
536/** A repository pull request. */
537export const ReviewDismissalsRepositoryPullRequestPullRequest = Schema.Struct({
538 /** A list of events, comments, commits, etc. associated with the pull request. */
539 timelineItems: PullRequestTimelineItemsConnection
540})
541export interface ReviewDismissalsRepositoryPullRequestPullRequest extends Schema.Struct.Type<typeof ReviewDismissalsRepositoryPullRequestPullRequest.fields> {}
542​
543/** A repository contains the content for a project. */
544export const ReviewDismissalsRepositoryRepository = Schema.Struct({
545 /** Returns a single pull request from the current repository by number. */
546 pullRequest: Schema.NullOr(ReviewDismissalsRepositoryPullRequestPullRequest)
547})
548export interface ReviewDismissalsRepositoryRepository extends Schema.Struct.Type<typeof ReviewDismissalsRepositoryRepository.fields> {}
549​
550/** `query ReviewDismissals` */
551export const ReviewDismissals = GraphQL.query("ReviewDismissals", {
552 document: {
553 variables: [
554 { name: "owner", body: "String!" },
555 { name: "name", body: "String!" },
556 { name: "number", body: "Int!" },
557 { name: "after", body: "String" }
558 ],
559 selections: [
560 { 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}}}}}}"] }
561 ],
562 fragments: []
563 },
564 variables: {
565 owner: Schema.String,
566 name: Schema.String,
567 number: Shared.Int,
568 after: Schema.optional(Schema.NullOr(Schema.String))
569 },
570 result: Schema.Struct({
571 /** Lookup a given repository by the owner and repository name. */
572 repository: Schema.NullOr(ReviewDismissalsRepositoryRepository)
573 })
574})
575export declare namespace ReviewDismissals {
576 export type Variables = typeof ReviewDismissals.variables.Type
577 export type Result = typeof ReviewDismissals.result.Type
579​
580/** Every operation in pullRequestReviews.graphql. */
581export const PullRequestReviewsGraphQLGroup = GraphQLGroup.make(ReviewThreads, ReviewThreadComments, ReviewDismissals)