The best way to control Claude Code, Codex and more from any computer or phone
| 1 | // Generated by @effect/graphql-generator from pullRequestMutations.graphql. Do not edit. |
| 2 | import { GraphQL, GraphQLGroup } from "effect/graphql" |
| 3 | import * as Schema from "effect/Schema" |
| 4 | import * 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. */ |
| 7 | export const User = Schema.Struct({ |
| 8 | __typename: Schema.Literal("User"), |
| 9 | /** The username used to login. */ |
| 10 | login: Schema.String, |
| 11 | /** A URL pointing to the user's public avatar. */ |
| 12 | avatarUrl: Shared.URI, |
| 13 | /** The user's public profile name. */ |
| 14 | name: Schema.NullOr(Schema.String) |
| 15 | }) |
| 16 | export interface User extends Schema.Struct.Type<typeof User.fields> {} |
| 17 | |
| 18 | /** Represents an object which can take actions on GitHub. Typically a User or Bot. */ |
| 19 | export const ActorOther = Schema.Struct({ |
| 20 | __typename: GraphQL.otherTypename<Shared.Typename.Actor>()(["User"]), |
| 21 | /** The username of the actor. */ |
| 22 | login: Schema.String, |
| 23 | /** A URL pointing to the actor's public avatar. */ |
| 24 | avatarUrl: Shared.URI |
| 25 | }) |
| 26 | export interface ActorOther extends Schema.Struct.Type<typeof ActorOther.fields> {} |
| 27 | |
| 28 | /** Represents an auto-merge request for a pull request */ |
| 29 | export const AutoMergeRequest = Schema.Struct({ |
| 30 | /** |
| 31 | * The merge method of the auto-merge request. If a merge queue is required by |
| 32 | * the base branch, this value will be set by the merge queue when merging. |
| 33 | */ |
| 34 | mergeMethod: GraphQL.enumLiterals(Shared.PullRequestMergeMethod.literals) |
| 35 | }) |
| 36 | export interface AutoMergeRequest extends Schema.Struct.Type<typeof AutoMergeRequest.fields> {} |
| 37 | |
| 38 | /** |
| 39 | * `fragment PullRequestActionSummary on PullRequest` |
| 40 | * |
| 41 | * A repository pull request. |
| 42 | */ |
| 43 | export const PullRequestActionSummary = Schema.Struct({ |
| 44 | /** Identifies the pull request number. */ |
| 45 | number: Shared.Int, |
| 46 | /** Identifies the pull request title. */ |
| 47 | title: Schema.String, |
| 48 | /** The HTTP URL for this pull request. */ |
| 49 | url: Shared.URI, |
| 50 | /** Identifies the name of the head Ref associated with the pull request, even if the ref has been deleted. */ |
| 51 | headRefName: Schema.String, |
| 52 | /** Identifies the name of the base Ref associated with the pull request, even if the ref has been deleted. */ |
| 53 | baseRefName: Schema.String, |
| 54 | /** Identifies the state of the pull request. */ |
| 55 | state: GraphQL.enumLiterals(Shared.PullRequestState.literals), |
| 56 | /** Identifies if the pull request is a draft. */ |
| 57 | isDraft: Schema.Boolean, |
| 58 | /** Identifies the date and time when the object was last updated. */ |
| 59 | updatedAt: Shared.DateTime, |
| 60 | /** The date and time that the pull request was merged. */ |
| 61 | mergedAt: Schema.NullOr(Shared.DateTime), |
| 62 | /** Identifies the date and time when the object was closed. */ |
| 63 | closedAt: Schema.NullOr(Shared.DateTime), |
| 64 | /** Identifies the oid of the head ref associated with the pull request, even if the ref has been deleted. */ |
| 65 | headRefOid: Shared.GitObjectID, |
| 66 | /** The actor who authored the comment. */ |
| 67 | author: Schema.NullOr(Schema.Union([ |
| 68 | User, |
| 69 | ActorOther |
| 70 | ])), |
| 71 | /** Returns the auto-merge request object if one exists for this pull request. */ |
| 72 | autoMergeRequest: Schema.NullOr(AutoMergeRequest) |
| 73 | }) |
| 74 | export interface PullRequestActionSummary extends Schema.Struct.Type<typeof PullRequestActionSummary.fields> {} |
| 75 | |
| 76 | /** A review comment associated with a given repository pull request. */ |
| 77 | export const PullRequestReviewComment = Schema.Struct({ |
| 78 | /** The Node ID of the PullRequestReviewComment object */ |
| 79 | id: Shared.ID |
| 80 | }) |
| 81 | export interface PullRequestReviewComment extends Schema.Struct.Type<typeof PullRequestReviewComment.fields> {} |
| 82 | |
| 83 | /** Autogenerated return type of AddPullRequestReviewThreadReply. */ |
| 84 | export const AddPullRequestReviewThreadReplyPayload = Schema.Struct({ |
| 85 | /** The newly created reply. */ |
| 86 | comment: Schema.NullOr(PullRequestReviewComment) |
| 87 | }) |
| 88 | export interface AddPullRequestReviewThreadReplyPayload extends Schema.Struct.Type<typeof AddPullRequestReviewThreadReplyPayload.fields> {} |
| 89 | |
| 90 | /** `mutation AddReviewThreadReply` */ |
| 91 | export const AddReviewThreadReply = GraphQL.mutation("AddReviewThreadReply", { |
| 92 | document: { |
| 93 | variables: [ |
| 94 | { name: "threadId", body: "ID!" }, |
| 95 | { name: "body", body: "String!" } |
| 96 | ], |
| 97 | selections: [ |
| 98 | { name: "addPullRequestReviewThreadReply", body: ["(input:{pullRequestReviewThreadId:$", "threadId", " body:$", "body", "}){comment{id}}"] } |
| 99 | ], |
| 100 | fragments: [] |
| 101 | }, |
| 102 | variables: { |
| 103 | threadId: Shared.ID, |
| 104 | body: Schema.String |
| 105 | }, |
| 106 | result: Schema.Struct({ |
| 107 | /** Adds a reply to an existing Pull Request Review Thread. */ |
| 108 | addPullRequestReviewThreadReply: Schema.NullOr(AddPullRequestReviewThreadReplyPayload) |
| 109 | }) |
| 110 | }) |
| 111 | export declare namespace AddReviewThreadReply { |
| 112 | export type Variables = typeof AddReviewThreadReply.variables.Type |
| 113 | export type Result = typeof AddReviewThreadReply.result.Type |
| 114 | } |
| 115 | |
| 116 | /** An emoji reaction to a particular piece of content. */ |
| 117 | export const Reaction = Schema.Struct({ |
| 118 | /** Identifies the emoji reaction. */ |
| 119 | content: GraphQL.enumLiterals(Shared.ReactionContent.literals) |
| 120 | }) |
| 121 | export interface Reaction extends Schema.Struct.Type<typeof Reaction.fields> {} |
| 122 | |
| 123 | /** Autogenerated return type of AddReaction. */ |
| 124 | export const AddReactionPayload = Schema.Struct({ |
| 125 | /** The reaction object. */ |
| 126 | reaction: Schema.NullOr(Reaction) |
| 127 | }) |
| 128 | export interface AddReactionPayload extends Schema.Struct.Type<typeof AddReactionPayload.fields> {} |
| 129 | |
| 130 | /** `mutation AddReaction` */ |
| 131 | export const AddReaction = GraphQL.mutation("AddReaction", { |
| 132 | document: { |
| 133 | variables: [ |
| 134 | { name: "subjectId", body: "ID!" }, |
| 135 | { name: "content", body: "ReactionContent!" } |
| 136 | ], |
| 137 | selections: [ |
| 138 | { name: "addReaction", body: ["(input:{subjectId:$", "subjectId", " content:$", "content", "}){reaction{content}}"] } |
| 139 | ], |
| 140 | fragments: [] |
| 141 | }, |
| 142 | variables: { |
| 143 | subjectId: Shared.ID, |
| 144 | content: Shared.ReactionContent |
| 145 | }, |
| 146 | result: Schema.Struct({ |
| 147 | /** Adds a reaction to a subject. */ |
| 148 | addReaction: Schema.NullOr(AddReactionPayload) |
| 149 | }) |
| 150 | }) |
| 151 | export declare namespace AddReaction { |
| 152 | export type Variables = typeof AddReaction.variables.Type |
| 153 | export type Result = typeof AddReaction.result.Type |
| 154 | } |
| 155 | |
| 156 | /** Autogenerated return type of RemoveReaction. */ |
| 157 | export const RemoveReactionPayload = Schema.Struct({ |
| 158 | /** The reaction object. */ |
| 159 | reaction: Schema.NullOr(Reaction) |
| 160 | }) |
| 161 | export interface RemoveReactionPayload extends Schema.Struct.Type<typeof RemoveReactionPayload.fields> {} |
| 162 | |
| 163 | /** `mutation RemoveReaction` */ |
| 164 | export const RemoveReaction = GraphQL.mutation("RemoveReaction", { |
| 165 | document: { |
| 166 | variables: [ |
| 167 | { name: "subjectId", body: "ID!" }, |
| 168 | { name: "content", body: "ReactionContent!" } |
| 169 | ], |
| 170 | selections: [ |
| 171 | { name: "removeReaction", body: ["(input:{subjectId:$", "subjectId", " content:$", "content", "}){reaction{content}}"] } |
| 172 | ], |
| 173 | fragments: [] |
| 174 | }, |
| 175 | variables: { |
| 176 | subjectId: Shared.ID, |
| 177 | content: Shared.ReactionContent |
| 178 | }, |
| 179 | result: Schema.Struct({ |
| 180 | /** Removes a reaction from a subject. */ |
| 181 | removeReaction: Schema.NullOr(RemoveReactionPayload) |
| 182 | }) |
| 183 | }) |
| 184 | export declare namespace RemoveReaction { |
| 185 | export type Variables = typeof RemoveReaction.variables.Type |
| 186 | export type Result = typeof RemoveReaction.result.Type |
| 187 | } |
| 188 | |
| 189 | /** A threaded list of comments for a given pull request. */ |
| 190 | export const PullRequestReviewThread = Schema.Struct({ |
| 191 | /** Whether this thread has been resolved */ |
| 192 | isResolved: Schema.Boolean |
| 193 | }) |
| 194 | export interface PullRequestReviewThread extends Schema.Struct.Type<typeof PullRequestReviewThread.fields> {} |
| 195 | |
| 196 | /** Autogenerated return type of ResolveReviewThread. */ |
| 197 | export const ResolveReviewThreadPayload = Schema.Struct({ |
| 198 | /** The thread to resolve. */ |
| 199 | thread: Schema.NullOr(PullRequestReviewThread) |
| 200 | }) |
| 201 | export interface ResolveReviewThreadPayload extends Schema.Struct.Type<typeof ResolveReviewThreadPayload.fields> {} |
| 202 | |
| 203 | /** `mutation ResolveReviewThread` */ |
| 204 | export const ResolveReviewThread = GraphQL.mutation("ResolveReviewThread", { |
| 205 | document: { |
| 206 | variables: [ |
| 207 | { name: "threadId", body: "ID!" } |
| 208 | ], |
| 209 | selections: [ |
| 210 | { name: "resolveReviewThread", body: ["(input:{threadId:$", "threadId", "}){thread{isResolved}}"] } |
| 211 | ], |
| 212 | fragments: [] |
| 213 | }, |
| 214 | variables: { |
| 215 | threadId: Shared.ID |
| 216 | }, |
| 217 | result: Schema.Struct({ |
| 218 | /** Marks a review thread as resolved. */ |
| 219 | resolveReviewThread: Schema.NullOr(ResolveReviewThreadPayload) |
| 220 | }) |
| 221 | }) |
| 222 | export declare namespace ResolveReviewThread { |
| 223 | export type Variables = typeof ResolveReviewThread.variables.Type |
| 224 | export type Result = typeof ResolveReviewThread.result.Type |
| 225 | } |
| 226 | |
| 227 | /** Autogenerated return type of UnresolveReviewThread. */ |
| 228 | export const UnresolveReviewThreadPayload = Schema.Struct({ |
| 229 | /** The thread to resolve. */ |
| 230 | thread: Schema.NullOr(PullRequestReviewThread) |
| 231 | }) |
| 232 | export interface UnresolveReviewThreadPayload extends Schema.Struct.Type<typeof UnresolveReviewThreadPayload.fields> {} |
| 233 | |
| 234 | /** `mutation UnresolveReviewThread` */ |
| 235 | export const UnresolveReviewThread = GraphQL.mutation("UnresolveReviewThread", { |
| 236 | document: { |
| 237 | variables: [ |
| 238 | { name: "threadId", body: "ID!" } |
| 239 | ], |
| 240 | selections: [ |
| 241 | { name: "unresolveReviewThread", body: ["(input:{threadId:$", "threadId", "}){thread{isResolved}}"] } |
| 242 | ], |
| 243 | fragments: [] |
| 244 | }, |
| 245 | variables: { |
| 246 | threadId: Shared.ID |
| 247 | }, |
| 248 | result: Schema.Struct({ |
| 249 | /** Marks a review thread as unresolved. */ |
| 250 | unresolveReviewThread: Schema.NullOr(UnresolveReviewThreadPayload) |
| 251 | }) |
| 252 | }) |
| 253 | export declare namespace UnresolveReviewThread { |
| 254 | export type Variables = typeof UnresolveReviewThread.variables.Type |
| 255 | export type Result = typeof UnresolveReviewThread.result.Type |
| 256 | } |
| 257 | |
| 258 | /** A repository pull request. */ |
| 259 | export const PullRequest = Schema.Struct({ |
| 260 | /** The Node ID of the PullRequest object */ |
| 261 | id: Shared.ID |
| 262 | }) |
| 263 | export interface PullRequest extends Schema.Struct.Type<typeof PullRequest.fields> {} |
| 264 | |
| 265 | /** Autogenerated return type of UpdatePullRequest. */ |
| 266 | export const UpdatePullRequestPayload = Schema.Struct({ |
| 267 | /** The updated pull request. */ |
| 268 | pullRequest: Schema.NullOr(PullRequest) |
| 269 | }) |
| 270 | export interface UpdatePullRequestPayload extends Schema.Struct.Type<typeof UpdatePullRequestPayload.fields> {} |
| 271 | |
| 272 | /** `mutation UpdatePullRequest` */ |
| 273 | export const UpdatePullRequest = GraphQL.mutation("UpdatePullRequest", { |
| 274 | document: { |
| 275 | variables: [ |
| 276 | { name: "pullRequestId", body: "ID!" }, |
| 277 | { name: "title", body: "String" }, |
| 278 | { name: "body", body: "String" }, |
| 279 | { name: "maintainerCanModify", body: "Boolean" } |
| 280 | ], |
| 281 | selections: [ |
| 282 | { name: "updatePullRequest", body: ["(input:{pullRequestId:$", "pullRequestId", " title:$", "title", " body:$", "body", " maintainerCanModify:$", "maintainerCanModify", "}){pullRequest{id}}"] } |
| 283 | ], |
| 284 | fragments: [] |
| 285 | }, |
| 286 | variables: { |
| 287 | pullRequestId: Shared.ID, |
| 288 | title: Schema.optional(Schema.NullOr(Schema.String)), |
| 289 | body: Schema.optional(Schema.NullOr(Schema.String)), |
| 290 | maintainerCanModify: Schema.optional(Schema.NullOr(Schema.Boolean)) |
| 291 | }, |
| 292 | result: Schema.Struct({ |
| 293 | /** Update a pull request */ |
| 294 | updatePullRequest: Schema.NullOr(UpdatePullRequestPayload) |
| 295 | }) |
| 296 | }) |
| 297 | export declare namespace UpdatePullRequest { |
| 298 | export type Variables = typeof UpdatePullRequest.variables.Type |
| 299 | export type Result = typeof UpdatePullRequest.result.Type |
| 300 | } |
| 301 | |
| 302 | /** Autogenerated return type of RevertPullRequest. */ |
| 303 | export const RevertPullRequestPayload = Schema.Struct({ |
| 304 | /** The new pull request that reverts the input pull request. */ |
| 305 | revertPullRequest: Schema.NullOr(PullRequest) |
| 306 | }) |
| 307 | export interface RevertPullRequestPayload extends Schema.Struct.Type<typeof RevertPullRequestPayload.fields> {} |
| 308 | |
| 309 | /** `mutation RevertPullRequest` */ |
| 310 | export const RevertPullRequest = GraphQL.mutation("RevertPullRequest", { |
| 311 | document: { |
| 312 | variables: [ |
| 313 | { name: "pullRequestId", body: "ID!" } |
| 314 | ], |
| 315 | selections: [ |
| 316 | { name: "revertPullRequest", body: ["(input:{pullRequestId:$", "pullRequestId", "}){revertPullRequest{id}}"] } |
| 317 | ], |
| 318 | fragments: [] |
| 319 | }, |
| 320 | variables: { |
| 321 | pullRequestId: Shared.ID |
| 322 | }, |
| 323 | result: Schema.Struct({ |
| 324 | /** Create a pull request that reverts the changes from a merged pull request. */ |
| 325 | revertPullRequest: Schema.NullOr(RevertPullRequestPayload) |
| 326 | }) |
| 327 | }) |
| 328 | export declare namespace RevertPullRequest { |
| 329 | export type Variables = typeof RevertPullRequest.variables.Type |
| 330 | export type Result = typeof RevertPullRequest.result.Type |
| 331 | } |
| 332 | |
| 333 | /** Represents a comment on an Issue. */ |
| 334 | export const IssueComment = Schema.Struct({ |
| 335 | /** The Node ID of the IssueComment object */ |
| 336 | id: Shared.ID |
| 337 | }) |
| 338 | export interface IssueComment extends Schema.Struct.Type<typeof IssueComment.fields> {} |
| 339 | |
| 340 | /** Autogenerated return type of UpdateIssueComment. */ |
| 341 | export const UpdateIssueCommentPayload = Schema.Struct({ |
| 342 | /** The updated comment. */ |
| 343 | issueComment: Schema.NullOr(IssueComment) |
| 344 | }) |
| 345 | export interface UpdateIssueCommentPayload extends Schema.Struct.Type<typeof UpdateIssueCommentPayload.fields> {} |
| 346 | |
| 347 | /** `mutation UpdateIssueComment` */ |
| 348 | export const UpdateIssueComment = GraphQL.mutation("UpdateIssueComment", { |
| 349 | document: { |
| 350 | variables: [ |
| 351 | { name: "commentId", body: "ID!" }, |
| 352 | { name: "body", body: "String!" } |
| 353 | ], |
| 354 | selections: [ |
| 355 | { name: "updateIssueComment", body: ["(input:{id:$", "commentId", " body:$", "body", "}){issueComment{id}}"] } |
| 356 | ], |
| 357 | fragments: [] |
| 358 | }, |
| 359 | variables: { |
| 360 | commentId: Shared.ID, |
| 361 | body: Schema.String |
| 362 | }, |
| 363 | result: Schema.Struct({ |
| 364 | /** Updates an IssueComment object. */ |
| 365 | updateIssueComment: Schema.NullOr(UpdateIssueCommentPayload) |
| 366 | }) |
| 367 | }) |
| 368 | export declare namespace UpdateIssueComment { |
| 369 | export type Variables = typeof UpdateIssueComment.variables.Type |
| 370 | export type Result = typeof UpdateIssueComment.result.Type |
| 371 | } |
| 372 | |
| 373 | /** Autogenerated return type of UpdatePullRequestReviewComment. */ |
| 374 | export const UpdatePullRequestReviewCommentPayload = Schema.Struct({ |
| 375 | /** The updated comment. */ |
| 376 | pullRequestReviewComment: Schema.NullOr(PullRequestReviewComment) |
| 377 | }) |
| 378 | export interface UpdatePullRequestReviewCommentPayload extends Schema.Struct.Type<typeof UpdatePullRequestReviewCommentPayload.fields> {} |
| 379 | |
| 380 | /** `mutation UpdateReviewComment` */ |
| 381 | export const UpdateReviewComment = GraphQL.mutation("UpdateReviewComment", { |
| 382 | document: { |
| 383 | variables: [ |
| 384 | { name: "commentId", body: "ID!" }, |
| 385 | { name: "body", body: "String!" } |
| 386 | ], |
| 387 | selections: [ |
| 388 | { name: "updatePullRequestReviewComment", body: ["(input:{pullRequestReviewCommentId:$", "commentId", " body:$", "body", "}){pullRequestReviewComment{id}}"] } |
| 389 | ], |
| 390 | fragments: [] |
| 391 | }, |
| 392 | variables: { |
| 393 | commentId: Shared.ID, |
| 394 | body: Schema.String |
| 395 | }, |
| 396 | result: Schema.Struct({ |
| 397 | /** Updates a pull request review comment. */ |
| 398 | updatePullRequestReviewComment: Schema.NullOr(UpdatePullRequestReviewCommentPayload) |
| 399 | }) |
| 400 | }) |
| 401 | export declare namespace UpdateReviewComment { |
| 402 | export type Variables = typeof UpdateReviewComment.variables.Type |
| 403 | export type Result = typeof UpdateReviewComment.result.Type |
| 404 | } |
| 405 | |
| 406 | /** Autogenerated return type of MarkFileAsViewed. */ |
| 407 | export const MarkFileAsViewedPayload = Schema.Struct({ |
| 408 | /** A unique identifier for the client performing the mutation. */ |
| 409 | clientMutationId: Schema.NullOr(Schema.String) |
| 410 | }) |
| 411 | export interface MarkFileAsViewedPayload extends Schema.Struct.Type<typeof MarkFileAsViewedPayload.fields> {} |
| 412 | |
| 413 | /** Autogenerated return type of UnmarkFileAsViewed. */ |
| 414 | export const UnmarkFileAsViewedPayload = Schema.Struct({ |
| 415 | /** A unique identifier for the client performing the mutation. */ |
| 416 | clientMutationId: Schema.NullOr(Schema.String) |
| 417 | }) |
| 418 | export interface UnmarkFileAsViewedPayload extends Schema.Struct.Type<typeof UnmarkFileAsViewedPayload.fields> {} |
| 419 | |
| 420 | /** `mutation SetFileViewed` */ |
| 421 | export const SetFileViewed = GraphQL.mutation("SetFileViewed", { |
| 422 | document: { |
| 423 | variables: [ |
| 424 | { name: "pullRequestId", body: "ID!" }, |
| 425 | { name: "path", body: "String!" }, |
| 426 | { name: "viewed", body: "Boolean!" } |
| 427 | ], |
| 428 | selections: [ |
| 429 | { name: "markFileAsViewed", body: ["(input:{pullRequestId:$", "pullRequestId", " path:$", "path", "})@include(if:$", "viewed", "){clientMutationId}"] }, |
| 430 | { name: "unmarkFileAsViewed", body: ["(input:{pullRequestId:$", "pullRequestId", " path:$", "path", "})@skip(if:$", "viewed", "){clientMutationId}"] } |
| 431 | ], |
| 432 | fragments: [] |
| 433 | }, |
| 434 | variables: { |
| 435 | pullRequestId: Shared.ID, |
| 436 | path: Schema.String, |
| 437 | viewed: Schema.Boolean |
| 438 | }, |
| 439 | result: Schema.Struct({ |
| 440 | /** Mark a pull request file as viewed */ |
| 441 | markFileAsViewed: Schema.optionalKey(Schema.NullOr(MarkFileAsViewedPayload)), |
| 442 | /** Unmark a pull request file as viewed */ |
| 443 | unmarkFileAsViewed: Schema.optionalKey(Schema.NullOr(UnmarkFileAsViewedPayload)) |
| 444 | }) |
| 445 | }) |
| 446 | export declare namespace SetFileViewed { |
| 447 | export type Variables = typeof SetFileViewed.variables.Type |
| 448 | export type Result = typeof SetFileViewed.result.Type |
| 449 | } |
| 450 | |
| 451 | /** Autogenerated return type of MergePullRequest. */ |
| 452 | export const MergePullRequestPayload = Schema.Struct({ |
| 453 | /** The pull request that was merged. */ |
| 454 | pullRequest: Schema.NullOr(PullRequestActionSummary) |
| 455 | }) |
| 456 | export interface MergePullRequestPayload extends Schema.Struct.Type<typeof MergePullRequestPayload.fields> {} |
| 457 | |
| 458 | /** `mutation MergePullRequest` */ |
| 459 | export const MergePullRequest = GraphQL.mutation("MergePullRequest", { |
| 460 | document: { |
| 461 | variables: [ |
| 462 | { name: "input", body: "MergePullRequestInput!" } |
| 463 | ], |
| 464 | selections: [ |
| 465 | { name: "mergePullRequest", body: ["(input:$", "input", "){pullRequest{...PullRequestActionSummary}}"] } |
| 466 | ], |
| 467 | fragments: [ |
| 468 | { name: "PullRequestActionSummary", body: ["on PullRequest{number title url headRefName baseRefName state isDraft updatedAt mergedAt closedAt headRefOid author{__typename login avatarUrl...on User{name}}autoMergeRequest{mergeMethod}}"] } |
| 469 | ] |
| 470 | }, |
| 471 | variables: { |
| 472 | input: Shared.MergePullRequestInput |
| 473 | }, |
| 474 | result: Schema.Struct({ |
| 475 | /** |
| 476 | * Merge a pull request. |
| 477 | * |
| 478 | * > [!NOTE] |
| 479 | * > We recommend using the [asynchronous merge REST |
| 480 | * API](${externalDocsUrl}/rest/pulls/pulls#merge-a-pull-request-asynchronously) instead. |
| 481 | * > This mutation does not support stacked pull requests. |
| 482 | */ |
| 483 | mergePullRequest: Schema.NullOr(MergePullRequestPayload) |
| 484 | }) |
| 485 | }) |
| 486 | export declare namespace MergePullRequest { |
| 487 | export type Variables = typeof MergePullRequest.variables.Type |
| 488 | export type Result = typeof MergePullRequest.result.Type |
| 489 | } |
| 490 | |
| 491 | /** Autogenerated return type of EnablePullRequestAutoMerge. */ |
| 492 | export const EnablePullRequestAutoMergePayload = Schema.Struct({ |
| 493 | /** The pull request auto-merge was enabled on. */ |
| 494 | pullRequest: Schema.NullOr(PullRequestActionSummary) |
| 495 | }) |
| 496 | export interface EnablePullRequestAutoMergePayload extends Schema.Struct.Type<typeof EnablePullRequestAutoMergePayload.fields> {} |
| 497 | |
| 498 | /** `mutation EnablePullRequestAutoMerge` */ |
| 499 | export const EnablePullRequestAutoMerge = GraphQL.mutation("EnablePullRequestAutoMerge", { |
| 500 | document: { |
| 501 | variables: [ |
| 502 | { name: "input", body: "EnablePullRequestAutoMergeInput!" } |
| 503 | ], |
| 504 | selections: [ |
| 505 | { name: "enablePullRequestAutoMerge", body: ["(input:$", "input", "){pullRequest{...PullRequestActionSummary}}"] } |
| 506 | ], |
| 507 | fragments: [ |
| 508 | { name: "PullRequestActionSummary", body: ["on PullRequest{number title url headRefName baseRefName state isDraft updatedAt mergedAt closedAt headRefOid author{__typename login avatarUrl...on User{name}}autoMergeRequest{mergeMethod}}"] } |
| 509 | ] |
| 510 | }, |
| 511 | variables: { |
| 512 | input: Shared.EnablePullRequestAutoMergeInput |
| 513 | }, |
| 514 | result: Schema.Struct({ |
| 515 | /** Enable the default auto-merge on a pull request. */ |
| 516 | enablePullRequestAutoMerge: Schema.NullOr(EnablePullRequestAutoMergePayload) |
| 517 | }) |
| 518 | }) |
| 519 | export declare namespace EnablePullRequestAutoMerge { |
| 520 | export type Variables = typeof EnablePullRequestAutoMerge.variables.Type |
| 521 | export type Result = typeof EnablePullRequestAutoMerge.result.Type |
| 522 | } |
| 523 | |
| 524 | /** Autogenerated return type of DisablePullRequestAutoMerge. */ |
| 525 | export const DisablePullRequestAutoMergePayload = Schema.Struct({ |
| 526 | /** The pull request auto merge was disabled on. */ |
| 527 | pullRequest: Schema.NullOr(PullRequestActionSummary) |
| 528 | }) |
| 529 | export interface DisablePullRequestAutoMergePayload extends Schema.Struct.Type<typeof DisablePullRequestAutoMergePayload.fields> {} |
| 530 | |
| 531 | /** `mutation DisablePullRequestAutoMerge` */ |
| 532 | export const DisablePullRequestAutoMerge = GraphQL.mutation("DisablePullRequestAutoMerge", { |
| 533 | document: { |
| 534 | variables: [ |
| 535 | { name: "pullRequestId", body: "ID!" } |
| 536 | ], |
| 537 | selections: [ |
| 538 | { name: "disablePullRequestAutoMerge", body: ["(input:{pullRequestId:$", "pullRequestId", "}){pullRequest{...PullRequestActionSummary}}"] } |
| 539 | ], |
| 540 | fragments: [ |
| 541 | { name: "PullRequestActionSummary", body: ["on PullRequest{number title url headRefName baseRefName state isDraft updatedAt mergedAt closedAt headRefOid author{__typename login avatarUrl...on User{name}}autoMergeRequest{mergeMethod}}"] } |
| 542 | ] |
| 543 | }, |
| 544 | variables: { |
| 545 | pullRequestId: Shared.ID |
| 546 | }, |
| 547 | result: Schema.Struct({ |
| 548 | /** Disable auto merge on the given pull request */ |
| 549 | disablePullRequestAutoMerge: Schema.NullOr(DisablePullRequestAutoMergePayload) |
| 550 | }) |
| 551 | }) |
| 552 | export declare namespace DisablePullRequestAutoMerge { |
| 553 | export type Variables = typeof DisablePullRequestAutoMerge.variables.Type |
| 554 | export type Result = typeof DisablePullRequestAutoMerge.result.Type |
| 555 | } |
| 556 | |
| 557 | /** Autogenerated return type of UpdatePullRequestBranch. */ |
| 558 | export const UpdatePullRequestBranchPayload = Schema.Struct({ |
| 559 | /** The updated pull request. */ |
| 560 | pullRequest: Schema.NullOr(PullRequestActionSummary) |
| 561 | }) |
| 562 | export interface UpdatePullRequestBranchPayload extends Schema.Struct.Type<typeof UpdatePullRequestBranchPayload.fields> {} |
| 563 | |
| 564 | /** `mutation UpdatePullRequestBranch` */ |
| 565 | export const UpdatePullRequestBranch = GraphQL.mutation("UpdatePullRequestBranch", { |
| 566 | document: { |
| 567 | variables: [ |
| 568 | { name: "pullRequestId", body: "ID!" }, |
| 569 | { name: "expectedHeadOid", body: "GitObjectID!" }, |
| 570 | { name: "updateMethod", body: "PullRequestBranchUpdateMethod!" } |
| 571 | ], |
| 572 | selections: [ |
| 573 | { name: "updatePullRequestBranch", body: ["(input:{pullRequestId:$", "pullRequestId", " expectedHeadOid:$", "expectedHeadOid", " updateMethod:$", "updateMethod", "}){pullRequest{...PullRequestActionSummary}}"] } |
| 574 | ], |
| 575 | fragments: [ |
| 576 | { name: "PullRequestActionSummary", body: ["on PullRequest{number title url headRefName baseRefName state isDraft updatedAt mergedAt closedAt headRefOid author{__typename login avatarUrl...on User{name}}autoMergeRequest{mergeMethod}}"] } |
| 577 | ] |
| 578 | }, |
| 579 | variables: { |
| 580 | pullRequestId: Shared.ID, |
| 581 | expectedHeadOid: Shared.GitObjectID, |
| 582 | updateMethod: Shared.PullRequestBranchUpdateMethod |
| 583 | }, |
| 584 | result: Schema.Struct({ |
| 585 | /** Merge or Rebase HEAD from upstream branch into pull request branch */ |
| 586 | updatePullRequestBranch: Schema.NullOr(UpdatePullRequestBranchPayload) |
| 587 | }) |
| 588 | }) |
| 589 | export declare namespace UpdatePullRequestBranch { |
| 590 | export type Variables = typeof UpdatePullRequestBranch.variables.Type |
| 591 | export type Result = typeof UpdatePullRequestBranch.result.Type |
| 592 | } |
| 593 | |
| 594 | /** Autogenerated return type of MarkPullRequestReadyForReview. */ |
| 595 | export const MarkPullRequestReadyForReviewPayload = Schema.Struct({ |
| 596 | /** The pull request that is ready for review. */ |
| 597 | pullRequest: Schema.NullOr(PullRequestActionSummary) |
| 598 | }) |
| 599 | export interface MarkPullRequestReadyForReviewPayload extends Schema.Struct.Type<typeof MarkPullRequestReadyForReviewPayload.fields> {} |
| 600 | |
| 601 | /** `mutation MarkPullRequestReadyForReview` */ |
| 602 | export const MarkPullRequestReadyForReview = GraphQL.mutation("MarkPullRequestReadyForReview", { |
| 603 | document: { |
| 604 | variables: [ |
| 605 | { name: "pullRequestId", body: "ID!" } |
| 606 | ], |
| 607 | selections: [ |
| 608 | { name: "markPullRequestReadyForReview", body: ["(input:{pullRequestId:$", "pullRequestId", "}){pullRequest{...PullRequestActionSummary}}"] } |
| 609 | ], |
| 610 | fragments: [ |
| 611 | { name: "PullRequestActionSummary", body: ["on PullRequest{number title url headRefName baseRefName state isDraft updatedAt mergedAt closedAt headRefOid author{__typename login avatarUrl...on User{name}}autoMergeRequest{mergeMethod}}"] } |
| 612 | ] |
| 613 | }, |
| 614 | variables: { |
| 615 | pullRequestId: Shared.ID |
| 616 | }, |
| 617 | result: Schema.Struct({ |
| 618 | /** Marks a pull request ready for review. */ |
| 619 | markPullRequestReadyForReview: Schema.NullOr(MarkPullRequestReadyForReviewPayload) |
| 620 | }) |
| 621 | }) |
| 622 | export declare namespace MarkPullRequestReadyForReview { |
| 623 | export type Variables = typeof MarkPullRequestReadyForReview.variables.Type |
| 624 | export type Result = typeof MarkPullRequestReadyForReview.result.Type |
| 625 | } |
| 626 | |
| 627 | /** Autogenerated return type of ConvertPullRequestToDraft. */ |
| 628 | export const ConvertPullRequestToDraftPayload = Schema.Struct({ |
| 629 | /** The pull request that is now a draft. */ |
| 630 | pullRequest: Schema.NullOr(PullRequestActionSummary) |
| 631 | }) |
| 632 | export interface ConvertPullRequestToDraftPayload extends Schema.Struct.Type<typeof ConvertPullRequestToDraftPayload.fields> {} |
| 633 | |
| 634 | /** `mutation ConvertPullRequestToDraft` */ |
| 635 | export const ConvertPullRequestToDraft = GraphQL.mutation("ConvertPullRequestToDraft", { |
| 636 | document: { |
| 637 | variables: [ |
| 638 | { name: "pullRequestId", body: "ID!" } |
| 639 | ], |
| 640 | selections: [ |
| 641 | { name: "convertPullRequestToDraft", body: ["(input:{pullRequestId:$", "pullRequestId", "}){pullRequest{...PullRequestActionSummary}}"] } |
| 642 | ], |
| 643 | fragments: [ |
| 644 | { name: "PullRequestActionSummary", body: ["on PullRequest{number title url headRefName baseRefName state isDraft updatedAt mergedAt closedAt headRefOid author{__typename login avatarUrl...on User{name}}autoMergeRequest{mergeMethod}}"] } |
| 645 | ] |
| 646 | }, |
| 647 | variables: { |
| 648 | pullRequestId: Shared.ID |
| 649 | }, |
| 650 | result: Schema.Struct({ |
| 651 | /** Converts a pull request to draft */ |
| 652 | convertPullRequestToDraft: Schema.NullOr(ConvertPullRequestToDraftPayload) |
| 653 | }) |
| 654 | }) |
| 655 | export declare namespace ConvertPullRequestToDraft { |
| 656 | export type Variables = typeof ConvertPullRequestToDraft.variables.Type |
| 657 | export type Result = typeof ConvertPullRequestToDraft.result.Type |
| 658 | } |
| 659 | |
| 660 | /** Autogenerated return type of ClosePullRequest. */ |
| 661 | export const ClosePullRequestPayload = Schema.Struct({ |
| 662 | /** The pull request that was closed. */ |
| 663 | pullRequest: Schema.NullOr(PullRequestActionSummary) |
| 664 | }) |
| 665 | export interface ClosePullRequestPayload extends Schema.Struct.Type<typeof ClosePullRequestPayload.fields> {} |
| 666 | |
| 667 | /** `mutation ClosePullRequest` */ |
| 668 | export const ClosePullRequest = GraphQL.mutation("ClosePullRequest", { |
| 669 | document: { |
| 670 | variables: [ |
| 671 | { name: "pullRequestId", body: "ID!" } |
| 672 | ], |
| 673 | selections: [ |
| 674 | { name: "closePullRequest", body: ["(input:{pullRequestId:$", "pullRequestId", "}){pullRequest{...PullRequestActionSummary}}"] } |
| 675 | ], |
| 676 | fragments: [ |
| 677 | { name: "PullRequestActionSummary", body: ["on PullRequest{number title url headRefName baseRefName state isDraft updatedAt mergedAt closedAt headRefOid author{__typename login avatarUrl...on User{name}}autoMergeRequest{mergeMethod}}"] } |
| 678 | ] |
| 679 | }, |
| 680 | variables: { |
| 681 | pullRequestId: Shared.ID |
| 682 | }, |
| 683 | result: Schema.Struct({ |
| 684 | /** Close a pull request. */ |
| 685 | closePullRequest: Schema.NullOr(ClosePullRequestPayload) |
| 686 | }) |
| 687 | }) |
| 688 | export declare namespace ClosePullRequest { |
| 689 | export type Variables = typeof ClosePullRequest.variables.Type |
| 690 | export type Result = typeof ClosePullRequest.result.Type |
| 691 | } |
| 692 | |
| 693 | /** Autogenerated return type of ReopenPullRequest. */ |
| 694 | export const ReopenPullRequestPayload = Schema.Struct({ |
| 695 | /** The pull request that was reopened. */ |
| 696 | pullRequest: Schema.NullOr(PullRequestActionSummary) |
| 697 | }) |
| 698 | export interface ReopenPullRequestPayload extends Schema.Struct.Type<typeof ReopenPullRequestPayload.fields> {} |
| 699 | |
| 700 | /** `mutation ReopenPullRequest` */ |
| 701 | export const ReopenPullRequest = GraphQL.mutation("ReopenPullRequest", { |
| 702 | document: { |
| 703 | variables: [ |
| 704 | { name: "pullRequestId", body: "ID!" } |
| 705 | ], |
| 706 | selections: [ |
| 707 | { name: "reopenPullRequest", body: ["(input:{pullRequestId:$", "pullRequestId", "}){pullRequest{...PullRequestActionSummary}}"] } |
| 708 | ], |
| 709 | fragments: [ |
| 710 | { name: "PullRequestActionSummary", body: ["on PullRequest{number title url headRefName baseRefName state isDraft updatedAt mergedAt closedAt headRefOid author{__typename login avatarUrl...on User{name}}autoMergeRequest{mergeMethod}}"] } |
| 711 | ] |
| 712 | }, |
| 713 | variables: { |
| 714 | pullRequestId: Shared.ID |
| 715 | }, |
| 716 | result: Schema.Struct({ |
| 717 | /** Reopen a pull request. */ |
| 718 | reopenPullRequest: Schema.NullOr(ReopenPullRequestPayload) |
| 719 | }) |
| 720 | }) |
| 721 | export declare namespace ReopenPullRequest { |
| 722 | export type Variables = typeof ReopenPullRequest.variables.Type |
| 723 | export type Result = typeof ReopenPullRequest.result.Type |
| 724 | } |
| 725 | |
| 726 | /** Autogenerated return type of AddComment. */ |
| 727 | export const AddCommentPayload = Schema.Struct({ |
| 728 | /** A unique identifier for the client performing the mutation. */ |
| 729 | clientMutationId: Schema.NullOr(Schema.String) |
| 730 | }) |
| 731 | export interface AddCommentPayload extends Schema.Struct.Type<typeof AddCommentPayload.fields> {} |
| 732 | |
| 733 | /** `mutation AddComment` */ |
| 734 | export const AddComment = GraphQL.mutation("AddComment", { |
| 735 | document: { |
| 736 | variables: [ |
| 737 | { name: "subjectId", body: "ID!" }, |
| 738 | { name: "body", body: "String!" } |
| 739 | ], |
| 740 | selections: [ |
| 741 | { name: "addComment", body: ["(input:{subjectId:$", "subjectId", " body:$", "body", "}){clientMutationId}"] } |
| 742 | ], |
| 743 | fragments: [] |
| 744 | }, |
| 745 | variables: { |
| 746 | subjectId: Shared.ID, |
| 747 | body: Schema.String |
| 748 | }, |
| 749 | result: Schema.Struct({ |
| 750 | /** Adds a comment to an Issue or Pull Request. */ |
| 751 | addComment: Schema.NullOr(AddCommentPayload) |
| 752 | }) |
| 753 | }) |
| 754 | export declare namespace AddComment { |
| 755 | export type Variables = typeof AddComment.variables.Type |
| 756 | export type Result = typeof AddComment.result.Type |
| 757 | } |
| 758 | |
| 759 | /** Autogenerated return type of UpdateRefs. */ |
| 760 | export const UpdateRefsPayload = Schema.Struct({ |
| 761 | /** A unique identifier for the client performing the mutation. */ |
| 762 | clientMutationId: Schema.NullOr(Schema.String) |
| 763 | }) |
| 764 | export interface UpdateRefsPayload extends Schema.Struct.Type<typeof UpdateRefsPayload.fields> {} |
| 765 | |
| 766 | /** `mutation DeletePullRequestBranch` */ |
| 767 | export const DeletePullRequestBranch = GraphQL.mutation("DeletePullRequestBranch", { |
| 768 | document: { |
| 769 | variables: [ |
| 770 | { name: "input", body: "UpdateRefsInput!" } |
| 771 | ], |
| 772 | selections: [ |
| 773 | { name: "updateRefs", body: ["(input:$", "input", "){clientMutationId}"] } |
| 774 | ], |
| 775 | fragments: [] |
| 776 | }, |
| 777 | variables: { |
| 778 | input: Shared.UpdateRefsInput |
| 779 | }, |
| 780 | result: Schema.Struct({ |
| 781 | /** |
| 782 | * Creates, updates and/or deletes multiple refs in a repository. |
| 783 | * |
| 784 | * This mutation takes a list of `RefUpdate`s and performs these updates |
| 785 | * on the repository. All updates are performed atomically, meaning that |
| 786 | * if one of them is rejected, no other ref will be modified. |
| 787 | * |
| 788 | * `RefUpdate.beforeOid` specifies that the given reference needs to point |
| 789 | * to the given value before performing any updates. A value of |
| 790 | * `0000000000000000000000000000000000000000` can be used to verify that |
| 791 | * the references should not exist. |
| 792 | * |
| 793 | * `RefUpdate.afterOid` specifies the value that the given reference |
| 794 | * will point to after performing all updates. A value of |
| 795 | * `0000000000000000000000000000000000000000` can be used to delete a |
| 796 | * reference. |
| 797 | * |
| 798 | * If `RefUpdate.force` is set to `true`, a non-fast-forward updates |
| 799 | * for the given reference will be allowed. |
| 800 | */ |
| 801 | updateRefs: Schema.NullOr(UpdateRefsPayload) |
| 802 | }) |
| 803 | }) |
| 804 | export declare namespace DeletePullRequestBranch { |
| 805 | export type Variables = typeof DeletePullRequestBranch.variables.Type |
| 806 | export type Result = typeof DeletePullRequestBranch.result.Type |
| 807 | } |
| 808 | |
| 809 | /** Every operation in pullRequestMutations.graphql. */ |
| 810 | export const PullRequestMutationsGraphQLGroup = GraphQLGroup.make(AddReviewThreadReply, AddReaction, RemoveReaction, ResolveReviewThread, UnresolveReviewThread, UpdatePullRequest, RevertPullRequest, UpdateIssueComment, UpdateReviewComment, SetFileViewed, MergePullRequest, EnablePullRequestAutoMerge, DisablePullRequestAutoMerge, UpdatePullRequestBranch, MarkPullRequestReadyForReview, ConvertPullRequestToDraft, ClosePullRequest, ReopenPullRequest, AddComment, DeletePullRequestBranch) |