// Generated by @effect/graphql-generator from pullRequestReviews.graphql. Do not edit.
import { GraphQL, GraphQLGroup } from "effect/graphql"
import * as Schema from "effect/Schema"
import * as Shared from "../../schema/github.graphql.ts"
/** A user is an individual's account on GitHub that owns repositories and can make new content. */
export const NodesUser = Schema.Struct({
__typename: Schema.Literal("User"),
/** The username used to login. */
login: Schema.String
})
export interface NodesUser extends Schema.Struct.Type<typeof NodesUser.fields> {}
/** A special type of user which takes actions on behalf of GitHub Apps. */
export const NodesBot = Schema.Struct({
__typename: Schema.Literal("Bot"),
/** The username of the actor. */
login: Schema.String
})
export interface NodesBot extends Schema.Struct.Type<typeof NodesBot.fields> {}
/** An account on GitHub, with one or more owners, that has repositories, members and teams. */
export const Organization = Schema.Struct({
__typename: Schema.Literal("Organization"),
/** The organization's login name. */
login: Schema.String
})
export interface Organization extends Schema.Struct.Type<typeof Organization.fields> {}
/** A placeholder user for attribution of imported data on GitHub. */
export const Mannequin = Schema.Struct({
__typename: Schema.Literal("Mannequin"),
/** The username of the actor. */
login: Schema.String
})
export interface Mannequin extends Schema.Struct.Type<typeof Mannequin.fields> {}
/** Types that can be assigned to reactions. */
export const ReactorOther = Schema.Struct({
__typename: GraphQL.otherTypename<Shared.Typename.Reactor>()(["User", "Bot", "Organization", "Mannequin"])
})
export interface ReactorOther extends Schema.Struct.Type<typeof ReactorOther.fields> {}
/** The connection type for Reactor. */
export const ReactorConnection = Schema.Struct({
/** Identifies the total count of items in the connection. */
totalCount: Shared.Int,
/** A list of nodes. */
nodes: Schema.NullOr(Schema.Array(Schema.NullOr(Schema.Union([
NodesUser,
NodesBot,
Organization,
Mannequin,
ReactorOther
]))))
})
export interface ReactorConnection extends Schema.Struct.Type<typeof ReactorConnection.fields> {}
/** A group of emoji reactions to a particular piece of content. */
export const ReactionGroup = Schema.Struct({
/** Identifies the emoji reaction. */
content: GraphQL.enumLiterals(Shared.ReactionContent.literals),
/** Whether or not the authenticated user has left a reaction on the subject. */
viewerHasReacted: Schema.Boolean,
/** Reactors to the reaction subject with the emotion represented by this reaction group. */
reactors: ReactorConnection
})
export interface ReactionGroup extends Schema.Struct.Type<typeof ReactionGroup.fields> {}
/**
* `fragment Reactions on Reactable`
*
* Represents a subject that can be reacted on.
*/
export const Reactions = Schema.Struct({
__typename: GraphQL.otherTypename<Shared.Typename.Reactable>()([]),
/** A list of reactions grouped by content left on the subject. */
reactionGroups: Schema.NullOr(Schema.Array(ReactionGroup))
})
export type Reactions = typeof Reactions.Type
/** Represents an object which can take actions on GitHub. Typically a User or Bot. */
export const Actor = Schema.Struct({
__typename: GraphQL.otherTypename<Shared.Typename.Actor>()([]),
/** The username of the actor. */
login: Schema.String,
/** A URL pointing to the actor's public avatar. */
avatarUrl: Shared.URI
})
export interface Actor extends Schema.Struct.Type<typeof Actor.fields> {}
/**
* `fragment ThreadComment on PullRequestReviewComment`
*
* A review comment associated with a given repository pull request.
*/
export const ThreadComment = Schema.Struct({
/** The Node ID of the PullRequestReviewComment object */
id: Shared.ID,
/** The actor who authored the comment. */
author: Schema.NullOr(Actor),
/** The comment body of this review comment. */
body: Schema.String,
/** Identifies when the comment was created. */
createdAt: Shared.DateTime,
/** The moment the editor made the last edit */
lastEditedAt: Schema.NullOr(Shared.DateTime),
/** The HTTP URL permalink for this review comment. */
url: Shared.URI,
/** A list of reactions grouped by content left on the subject. */
reactionGroups: Schema.NullOr(Schema.Array(ReactionGroup))
})
export interface ThreadComment extends Schema.Struct.Type<typeof ThreadComment.fields> {}
/** Information about pagination in a connection. */
export const PageInfo = Schema.Struct({
/** When paginating forwards, are there more items? */
hasNextPage: Schema.Boolean,
/** When paginating forwards, the cursor to continue. */
endCursor: Schema.NullOr(Schema.String)
})
export interface PageInfo extends Schema.Struct.Type<typeof PageInfo.fields> {}
/** The connection type for PullRequestReviewComment. */
export const NodesCommentsPullRequestReviewCommentConnection = Schema.Struct({
/** Identifies the total count of items in the connection. */
totalCount: Shared.Int,
/** Information to aid in pagination. */
pageInfo: PageInfo,
/** A list of nodes. */
nodes: Schema.NullOr(Schema.Array(Schema.NullOr(ThreadComment)))
})
export interface NodesCommentsPullRequestReviewCommentConnection extends Schema.Struct.Type<typeof NodesCommentsPullRequestReviewCommentConnection.fields> {}
/** A threaded list of comments for a given pull request. */
export const NodesPullRequestReviewThread = Schema.Struct({
/** The Node ID of the PullRequestReviewThread object */
id: Shared.ID,
/** Whether this thread has been resolved */
isResolved: Schema.Boolean,
/** Indicates whether this thread was outdated by newer changes. */
isOutdated: Schema.Boolean,
/** Identifies the file path of this thread. */
path: Schema.String,
/** The line in the file to which this thread refers */
line: Schema.NullOr(Shared.Int),
/** The side of the diff on which this thread was placed. */
diffSide: GraphQL.enumLiterals(Shared.DiffSide.literals),
/** A list of pull request comments associated with the thread. */
comments: NodesCommentsPullRequestReviewCommentConnection
})
export interface NodesPullRequestReviewThread extends Schema.Struct.Type<typeof NodesPullRequestReviewThread.fields> {}
/**
* `fragment ReviewThreadPage on PullRequestReviewThreadConnection`
*
* Review comment threads for a pull request review.
*/
export const ReviewThreadPage = Schema.Struct({
/** Identifies the total count of items in the connection. */
totalCount: Shared.Int,
/** Information to aid in pagination. */
pageInfo: PageInfo,
/** A list of nodes. */
nodes: Schema.NullOr(Schema.Array(Schema.NullOr(NodesPullRequestReviewThread)))
})
export interface ReviewThreadPage extends Schema.Struct.Type<typeof ReviewThreadPage.fields> {}
/** A user is an individual's account on GitHub that owns repositories and can make new content. */
export const ViewerUser = Schema.Struct({
/** The username used to login. */
login: Schema.String
})
export interface ViewerUser extends Schema.Struct.Type<typeof ViewerUser.fields> {}
/** Represents a comment on an Issue. */
export const IssueComment = Schema.Struct({
/** The Node ID of the IssueComment object */
id: Shared.ID,
/** The moment the editor made the last edit */
lastEditedAt: Schema.NullOr(Shared.DateTime),
/** The actor who authored the comment. */
author: Schema.NullOr(Actor),
/** A list of reactions grouped by content left on the subject. */
reactionGroups: Schema.NullOr(Schema.Array(ReactionGroup))
})
export interface IssueComment extends Schema.Struct.Type<typeof IssueComment.fields> {}
/** The connection type for IssueComment. */
export const IssueCommentConnection = Schema.Struct({
/** A list of nodes. */
nodes: Schema.NullOr(Schema.Array(Schema.NullOr(IssueComment)))
})
export interface IssueCommentConnection extends Schema.Struct.Type<typeof IssueCommentConnection.fields> {}
/** A review object for a given pull request. */
export const ReviewsNodesPullRequestReview = Schema.Struct({
/** The Node ID of the PullRequestReview object */
id: Shared.ID,
/** The moment the editor made the last edit */
lastEditedAt: Schema.NullOr(Shared.DateTime),
/** The actor who authored the comment. */
author: Schema.NullOr(Actor),
/** A list of reactions grouped by content left on the subject. */
reactionGroups: Schema.NullOr(Schema.Array(ReactionGroup))
})
export interface ReviewsNodesPullRequestReview extends Schema.Struct.Type<typeof ReviewsNodesPullRequestReview.fields> {}
/** The connection type for PullRequestReview. */
export const ReviewsPullRequestReviewConnection = Schema.Struct({
/** A list of nodes. */
nodes: Schema.NullOr(Schema.Array(Schema.NullOr(ReviewsNodesPullRequestReview)))
})
export interface ReviewsPullRequestReviewConnection extends Schema.Struct.Type<typeof ReviewsPullRequestReviewConnection.fields> {}
/** A user is an individual's account on GitHub that owns repositories and can make new content. */
export const RequestedReviewerUser = Schema.Struct({
__typename: Schema.Literal("User"),
/** The username used to login. */
login: Schema.String,
/** The user's public profile name. */
name: Schema.NullOr(Schema.String),
/** A URL pointing to the user's public avatar. */
avatarUrl: Shared.URI
})
export interface RequestedReviewerUser extends Schema.Struct.Type<typeof RequestedReviewerUser.fields> {}
/** A special type of user which takes actions on behalf of GitHub Apps. */
export const RequestedReviewerBot = Schema.Struct({
__typename: Schema.Literal("Bot"),
/** The username of the actor. */
login: Schema.String,
/** A URL pointing to the GitHub App's public avatar. */
avatarUrl: Shared.URI
})
export interface RequestedReviewerBot extends Schema.Struct.Type<typeof RequestedReviewerBot.fields> {}
/** A team of users in an organization. */
export const Team = Schema.Struct({
__typename: Schema.Literal("Team"),
/** The slug corresponding to the organization and team. */
combinedSlug: Schema.String,
/** The name of the team. */
teamName: Schema.String,
/** A URL pointing to the team's avatar. */
teamAvatarUrl: Schema.NullOr(Shared.URI)
})
export interface Team extends Schema.Struct.Type<typeof Team.fields> {}
/** Types that can be requested reviewers. */
export const RequestedReviewerOther = Schema.Struct({
__typename: GraphQL.otherTypename<Shared.Typename.RequestedReviewer>()(["User", "Bot", "Team"])
})
export interface RequestedReviewerOther extends Schema.Struct.Type<typeof RequestedReviewerOther.fields> {}
/** A request for a user to review a pull request. */
export const ReviewRequest = Schema.Struct({
/** The reviewer that is requested. */
requestedReviewer: Schema.NullOr(Schema.Union([
RequestedReviewerUser,
RequestedReviewerBot,
Team,
RequestedReviewerOther
]))
})
export interface ReviewRequest extends Schema.Struct.Type<typeof ReviewRequest.fields> {}
/** The connection type for ReviewRequest. */
export const ReviewRequestConnection = Schema.Struct({
/** A list of nodes. */
nodes: Schema.NullOr(Schema.Array(Schema.NullOr(ReviewRequest)))
})
export interface ReviewRequestConnection extends Schema.Struct.Type<typeof ReviewRequestConnection.fields> {}
/** A review object for a given pull request. */
export const LatestReviewsNodesPullRequestReview = Schema.Struct({
/** Identifies the current state of the pull request review. */
state: GraphQL.enumLiterals(Shared.PullRequestReviewState.literals),
/** The actor who authored the comment. */
author: Schema.NullOr(Actor)
})
export interface LatestReviewsNodesPullRequestReview extends Schema.Struct.Type<typeof LatestReviewsNodesPullRequestReview.fields> {}
/** The connection type for PullRequestReview. */
export const LatestReviewsPullRequestReviewConnection = Schema.Struct({
/** A list of nodes. */
nodes: Schema.NullOr(Schema.Array(Schema.NullOr(LatestReviewsNodesPullRequestReview)))
})
export interface LatestReviewsPullRequestReviewConnection extends Schema.Struct.Type<typeof LatestReviewsPullRequestReviewConnection.fields> {}
/** A review object for a given pull request. */
export const ReviewPullRequestReview = Schema.Struct({
/** The Node ID of the PullRequestReview object */
id: Shared.ID
})
export interface ReviewPullRequestReview extends Schema.Struct.Type<typeof ReviewPullRequestReview.fields> {}
/** Represents a 'review_dismissed' event on a given issue or pull request. */
export const ReviewDismissedEvent = Schema.Struct({
__typename: Schema.Literal("ReviewDismissedEvent"),
/** Identifies the optional message associated with the 'review_dismissed' event. */
dismissalMessage: Schema.NullOr(Schema.String),
/** Identifies the review associated with the 'review_dismissed' event. */
review: Schema.NullOr(ReviewPullRequestReview)
})
export interface ReviewDismissedEvent extends Schema.Struct.Type<typeof ReviewDismissedEvent.fields> {}
/** An item in a pull request timeline */
export const PullRequestTimelineItemsOther = Schema.Struct({
__typename: GraphQL.otherTypename<Shared.Typename.PullRequestTimelineItems>()(["ReviewDismissedEvent"])
})
export interface PullRequestTimelineItemsOther extends Schema.Struct.Type<typeof PullRequestTimelineItemsOther.fields> {}
/** The connection type for PullRequestTimelineItems. */
export const PullRequestTimelineItemsConnection = Schema.Struct({
/** Information to aid in pagination. */
pageInfo: PageInfo,
/** A list of nodes. */
nodes: Schema.NullOr(Schema.Array(Schema.NullOr(Schema.Union([
ReviewDismissedEvent,
PullRequestTimelineItemsOther
]))))
})
export interface PullRequestTimelineItemsConnection extends Schema.Struct.Type<typeof PullRequestTimelineItemsConnection.fields> {}
/** Represents an actor in a Git commit (ie. an author or committer). */
export const GitActor = Schema.Struct({
/** The name in the Git commit. */
name: Schema.NullOr(Schema.String),
/** A URL pointing to the author's public avatar. */
avatarUrl: Shared.URI,
/** The GitHub user corresponding to the email field. Null if no such user exists. */
user: Schema.NullOr(ViewerUser)
})
export interface GitActor extends Schema.Struct.Type<typeof GitActor.fields> {}
/** The connection type for GitActor. */
export const GitActorConnection = Schema.Struct({
/** A list of nodes. */
nodes: Schema.NullOr(Schema.Array(Schema.NullOr(GitActor)))
})
export interface GitActorConnection extends Schema.Struct.Type<typeof GitActorConnection.fields> {}
/** Represents a Git commit. */
export const Commit = Schema.Struct({
/** The Git object ID */
oid: Shared.GitObjectID,
/** The Git commit message headline */
messageHeadline: Schema.String,
/** The datetime when this commit was committed. */
committedDate: Shared.DateTime,
/**
* The list of authors for this commit based on the git author and the Co-authored-by
* message trailer. The git author will always be first.
*/
authors: GitActorConnection
})
export interface Commit extends Schema.Struct.Type<typeof Commit.fields> {}
/** Represents a Git commit part of a pull request. */
export const PullRequestCommit = Schema.Struct({
/** The Git commit object */
commit: Commit
})
export interface PullRequestCommit extends Schema.Struct.Type<typeof PullRequestCommit.fields> {}
/** The connection type for PullRequestCommit. */
export const PullRequestCommitConnection = Schema.Struct({
/** A list of nodes. */
nodes: Schema.NullOr(Schema.Array(Schema.NullOr(PullRequestCommit)))
})
export interface PullRequestCommitConnection extends Schema.Struct.Type<typeof PullRequestCommitConnection.fields> {}
/** A repository pull request. */
export const ReviewThreadsRepositoryPullRequestPullRequest = Schema.Struct({
/** The list of all review threads for this pull request. */
reviewThreads: ReviewThreadPage,
/** Check if the current viewer can update this object. */
viewerCanUpdate: Schema.Boolean,
/** Did the viewer author this comment. */
viewerDidAuthor: Schema.Boolean,
/** The actor who authored the comment. */
author: Schema.NullOr(Actor),
/** A list of reactions grouped by content left on the subject. */
reactionGroups: Schema.NullOr(Schema.Array(ReactionGroup)),
/** A list of comments associated with the pull request. */
comments: IssueCommentConnection,
/** A list of reviews associated with the pull request. */
reviews: Schema.NullOr(ReviewsPullRequestReviewConnection),
/** A list of review requests associated with the pull request. */
reviewRequests: Schema.NullOr(ReviewRequestConnection),
/** A list of latest reviews per user associated with the pull request that are not also pending review. */
latestReviews: Schema.NullOr(LatestReviewsPullRequestReviewConnection),
/** A list of events, comments, commits, etc. associated with the pull request. */
reviewDismissals: PullRequestTimelineItemsConnection,
/** A list of commits present in this pull request's head branch not present in the base branch. */
commits: PullRequestCommitConnection
})
export interface ReviewThreadsRepositoryPullRequestPullRequest extends Schema.Struct.Type<typeof ReviewThreadsRepositoryPullRequestPullRequest.fields> {}
/** A repository contains the content for a project. */
export const ReviewThreadsRepositoryRepository = Schema.Struct({
/** Returns a single pull request from the current repository by number. */
pullRequest: Schema.NullOr(ReviewThreadsRepositoryPullRequestPullRequest)
})
export interface ReviewThreadsRepositoryRepository extends Schema.Struct.Type<typeof ReviewThreadsRepositoryRepository.fields> {}
/** `query ReviewThreads` */
export const ReviewThreads = GraphQL.query("ReviewThreads", {
document: {
variables: [
{ name: "owner", body: "String!" },
{ name: "name", body: "String!" },
{ name: "number", body: "Int!" },
{ name: "requestedReviewers", body: "Int!" }
],
selections: [
{ name: "viewer", body: ["{login}"] },
{ name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){pullRequest(number:$", "number", "){reviewThreads(first:100){...ReviewThreadPage}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}}}}}}}}"] }
],
fragments: [
{ name: "ReviewThreadPage", body: ["on PullRequestReviewThreadConnection{totalCount pageInfo{hasNextPage endCursor}nodes{id isResolved isOutdated path line diffSide comments(first:10){totalCount pageInfo{hasNextPage endCursor}nodes{...ThreadComment}}}}"] },
{ 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}}}}}"] },
{ name: "ThreadComment", body: ["on PullRequestReviewComment{id author{__typename login avatarUrl}body createdAt lastEditedAt url...Reactions}"] }
]
},
variables: {
owner: Schema.String,
name: Schema.String,
number: Shared.Int,
requestedReviewers: Shared.Int
},
result: Schema.Struct({
/** The currently authenticated user. */
viewer: ViewerUser,
/** Lookup a given repository by the owner and repository name. */
repository: Schema.NullOr(ReviewThreadsRepositoryRepository)
})
})
export declare namespace ReviewThreads {
export type Variables = typeof ReviewThreads.variables.Type
export type Result = typeof ReviewThreads.result.Type
}
/** A repository pull request. */
export const ReviewThreadPagesRepositoryPullRequestPullRequest = Schema.Struct({
/** The list of all review threads for this pull request. */
reviewThreads: ReviewThreadPage
})
export interface ReviewThreadPagesRepositoryPullRequestPullRequest extends Schema.Struct.Type<typeof ReviewThreadPagesRepositoryPullRequestPullRequest.fields> {}
/** A repository contains the content for a project. */
export const ReviewThreadPagesRepositoryRepository = Schema.Struct({
/** Returns a single pull request from the current repository by number. */
pullRequest: Schema.NullOr(ReviewThreadPagesRepositoryPullRequestPullRequest)
})
export interface ReviewThreadPagesRepositoryRepository extends Schema.Struct.Type<typeof ReviewThreadPagesRepositoryRepository.fields> {}
/** `query ReviewThreadPages` */
export const ReviewThreadPages = GraphQL.query("ReviewThreadPages", {
document: {
variables: [
{ name: "owner", body: "String!" },
{ name: "name", body: "String!" },
{ name: "number", body: "Int!" },
{ name: "after", body: "String!" }
],
selections: [
{ name: "viewer", body: ["{login}"] },
{ name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){pullRequest(number:$", "number", "){reviewThreads(first:100 after:$", "after", "){...ReviewThreadPage}}}"] }
],
fragments: [
{ name: "ReviewThreadPage", body: ["on PullRequestReviewThreadConnection{totalCount pageInfo{hasNextPage endCursor}nodes{id isResolved isOutdated path line diffSide comments(first:10){totalCount pageInfo{hasNextPage endCursor}nodes{...ThreadComment}}}}"] },
{ name: "ThreadComment", body: ["on PullRequestReviewComment{id author{__typename login avatarUrl}body createdAt lastEditedAt url...Reactions}"] },
{ 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}}}}}"] }
]
},
variables: {
owner: Schema.String,
name: Schema.String,
number: Shared.Int,
after: Schema.String
},
result: Schema.Struct({
/** The currently authenticated user. */
viewer: ViewerUser,
/** Lookup a given repository by the owner and repository name. */
repository: Schema.NullOr(ReviewThreadPagesRepositoryRepository)
})
})
export declare namespace ReviewThreadPages {
export type Variables = typeof ReviewThreadPages.variables.Type
export type Result = typeof ReviewThreadPages.result.Type
}
/** A repository pull request. */
export const ReviewThreadCommentsRepositoryPullRequestPullRequest = Schema.Struct({
/** The Node ID of the PullRequest object */
id: Shared.ID
})
export interface ReviewThreadCommentsRepositoryPullRequestPullRequest extends Schema.Struct.Type<typeof ReviewThreadCommentsRepositoryPullRequestPullRequest.fields> {}
/** A repository contains the content for a project. */
export const ReviewThreadCommentsRepositoryRepository = Schema.Struct({
/** Returns a single pull request from the current repository by number. */
pullRequest: Schema.NullOr(ReviewThreadCommentsRepositoryPullRequestPullRequest)
})
export interface ReviewThreadCommentsRepositoryRepository extends Schema.Struct.Type<typeof ReviewThreadCommentsRepositoryRepository.fields> {}
/** The connection type for PullRequestReviewComment. */
export const NodeCommentsPullRequestReviewCommentConnection = Schema.Struct({
/** Information to aid in pagination. */
pageInfo: PageInfo,
/** A list of nodes. */
nodes: Schema.NullOr(Schema.Array(Schema.NullOr(ThreadComment)))
})
export interface NodeCommentsPullRequestReviewCommentConnection extends Schema.Struct.Type<typeof NodeCommentsPullRequestReviewCommentConnection.fields> {}
/** A threaded list of comments for a given pull request. */
export const NodePullRequestReviewThread = Schema.Struct({
__typename: Schema.Literal("PullRequestReviewThread"),
/** Identifies the pull request associated with this thread. */
pullRequest: ReviewThreadCommentsRepositoryPullRequestPullRequest,
/** A list of pull request comments associated with the thread. */
comments: NodeCommentsPullRequestReviewCommentConnection
})
export interface NodePullRequestReviewThread extends Schema.Struct.Type<typeof NodePullRequestReviewThread.fields> {}
/** An object with an ID. */
export const NodeOther = Schema.Struct({
__typename: GraphQL.otherTypename<Shared.Typename.Node>()(["PullRequestReviewThread"])
})
export interface NodeOther extends Schema.Struct.Type<typeof NodeOther.fields> {}
/** `query ReviewThreadComments` */
export const ReviewThreadComments = GraphQL.query("ReviewThreadComments", {
document: {
variables: [
{ name: "owner", body: "String!" },
{ name: "name", body: "String!" },
{ name: "number", body: "Int!" },
{ name: "threadId", body: "ID!" },
{ name: "after", body: "String" }
],
selections: [
{ name: "viewer", body: ["{login}"] },
{ name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){pullRequest(number:$", "number", "){id}}"] },
{ name: "node", body: ["(id:$", "threadId", "){__typename...on PullRequestReviewThread{pullRequest{id}comments(first:100 after:$", "after", "){pageInfo{hasNextPage endCursor}nodes{...ThreadComment}}}}"] }
],
fragments: [
{ name: "ThreadComment", body: ["on PullRequestReviewComment{id author{__typename login avatarUrl}body createdAt lastEditedAt url...Reactions}"] },
{ 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}}}}}"] }
]
},
variables: {
owner: Schema.String,
name: Schema.String,
number: Shared.Int,
threadId: Shared.ID,
after: Schema.optional(Schema.NullOr(Schema.String))
},
result: Schema.Struct({
/** The currently authenticated user. */
viewer: ViewerUser,
/** Lookup a given repository by the owner and repository name. */
repository: Schema.NullOr(ReviewThreadCommentsRepositoryRepository),
/** Fetches an object given its ID. */
node: Schema.NullOr(Schema.Union([
NodePullRequestReviewThread,
NodeOther
]))
})
})
export declare namespace ReviewThreadComments {
export type Variables = typeof ReviewThreadComments.variables.Type
export type Result = typeof ReviewThreadComments.result.Type
}
/** A repository pull request. */
export const ReviewDismissalsRepositoryPullRequestPullRequest = Schema.Struct({
/** A list of events, comments, commits, etc. associated with the pull request. */
timelineItems: PullRequestTimelineItemsConnection
})
export interface ReviewDismissalsRepositoryPullRequestPullRequest extends Schema.Struct.Type<typeof ReviewDismissalsRepositoryPullRequestPullRequest.fields> {}
/** A repository contains the content for a project. */
export const ReviewDismissalsRepositoryRepository = Schema.Struct({
/** Returns a single pull request from the current repository by number. */
pullRequest: Schema.NullOr(ReviewDismissalsRepositoryPullRequestPullRequest)
})
export interface ReviewDismissalsRepositoryRepository extends Schema.Struct.Type<typeof ReviewDismissalsRepositoryRepository.fields> {}
/** `query ReviewDismissals` */
export const ReviewDismissals = GraphQL.query("ReviewDismissals", {
document: {
variables: [
{ name: "owner", body: "String!" },
{ name: "name", body: "String!" },
{ name: "number", body: "Int!" },
{ name: "after", body: "String" }
],
selections: [
{ 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}}}}}}"] }
],
fragments: []
},
variables: {
owner: Schema.String,
name: Schema.String,
number: Shared.Int,
after: Schema.optional(Schema.NullOr(Schema.String))
},
result: Schema.Struct({
/** Lookup a given repository by the owner and repository name. */
repository: Schema.NullOr(ReviewDismissalsRepositoryRepository)
})
})
export declare namespace ReviewDismissals {
export type Variables = typeof ReviewDismissals.variables.Type
export type Result = typeof ReviewDismissals.result.Type
}
/** Every operation in pullRequestReviews.graphql. */
export const PullRequestReviewsGraphQLGroup = GraphQLGroup.make(ReviewThreads, ReviewThreadPages, ReviewThreadComments, ReviewDismissals)