The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 04:45 UTC
| 1 | // Generated by @effect/graphql-generator from pullRequestReads.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 | /** Represents an individual commit status context */ |
| 7 | export const StatusContext = Schema.Struct({ |
| 8 | __typename: Schema.Literal("StatusContext"), |
| 9 | /** The name of this status context. */ |
| 10 | context: Schema.String, |
| 11 | /** The state of this status context. */ |
| 12 | state: GraphQL.enumLiterals(Shared.StatusState.literals), |
| 13 | /** The URL for this status context. */ |
| 14 | targetUrl: Schema.NullOr(Shared.URI), |
| 15 | /** Identifies the date and time when the object was created. */ |
| 16 | createdAt: Shared.DateTime, |
| 17 | /** The description for this status context. */ |
| 18 | description: Schema.NullOr(Schema.String), |
| 19 | /** Whether this is required to pass before merging for a specific pull request. */ |
| 20 | isRequired: Schema.optionalKey(Schema.Boolean) |
| 21 | }) |
| 22 | export interface StatusContext extends Schema.Struct.Type<typeof StatusContext.fields> {} |
| 23 | |
| 24 | /** A workflow contains meta information about an Actions workflow file. */ |
| 25 | export const Workflow = Schema.Struct({ |
| 26 | /** The name of the workflow. */ |
| 27 | name: Schema.String |
| 28 | }) |
| 29 | export interface Workflow extends Schema.Struct.Type<typeof Workflow.fields> {} |
| 30 | |
| 31 | /** A workflow run. */ |
| 32 | export const WorkflowRun = Schema.Struct({ |
| 33 | /** The workflow executed in this workflow run. */ |
| 34 | workflow: Workflow |
| 35 | }) |
| 36 | export interface WorkflowRun extends Schema.Struct.Type<typeof WorkflowRun.fields> {} |
| 37 | |
| 38 | /** A check suite. */ |
| 39 | export const CheckSuite = Schema.Struct({ |
| 40 | /** The workflow run associated with this check suite. */ |
| 41 | workflowRun: Schema.NullOr(WorkflowRun) |
| 42 | }) |
| 43 | export interface CheckSuite extends Schema.Struct.Type<typeof CheckSuite.fields> {} |
| 44 | |
| 45 | /** A check run. */ |
| 46 | export const CheckRun = Schema.Struct({ |
| 47 | __typename: Schema.Literal("CheckRun"), |
| 48 | /** The name of the check for this check run. */ |
| 49 | name: Schema.String, |
| 50 | /** The current status of the check run. */ |
| 51 | status: GraphQL.enumLiterals(Shared.CheckStatusState.literals), |
| 52 | /** The conclusion of the check run. */ |
| 53 | conclusion: Schema.NullOr(GraphQL.enumLiterals(Shared.CheckConclusionState.literals)), |
| 54 | /** Identifies the date and time when the check run was started. */ |
| 55 | startedAt: Schema.NullOr(Shared.DateTime), |
| 56 | /** Identifies the date and time when the check run was completed. */ |
| 57 | completedAt: Schema.NullOr(Shared.DateTime), |
| 58 | /** The URL from which to find full details of the check run on the integrator's site. */ |
| 59 | detailsUrl: Schema.NullOr(Shared.URI), |
| 60 | /** Whether this is required to pass before merging for a specific pull request. */ |
| 61 | isRequired: Schema.optionalKey(Schema.Boolean), |
| 62 | /** The check suite that this run is a part of. */ |
| 63 | checkSuite: CheckSuite |
| 64 | }) |
| 65 | export interface CheckRun extends Schema.Struct.Type<typeof CheckRun.fields> {} |
| 66 | |
| 67 | /** Types that can be inside a StatusCheckRollup context. */ |
| 68 | export const StatusCheckRollupContextOther = Schema.Struct({ |
| 69 | __typename: GraphQL.otherTypename<Shared.Typename.StatusCheckRollupContext>()(["StatusContext", "CheckRun"]) |
| 70 | }) |
| 71 | export interface StatusCheckRollupContextOther extends Schema.Struct.Type<typeof StatusCheckRollupContextOther.fields> {} |
| 72 | |
| 73 | /** |
| 74 | * `fragment CheckContext on StatusCheckRollupContext` |
| 75 | * |
| 76 | * Types that can be inside a StatusCheckRollup context. |
| 77 | */ |
| 78 | export const CheckContext = Schema.Union([ |
| 79 | StatusContext, |
| 80 | CheckRun, |
| 81 | StatusCheckRollupContextOther |
| 82 | ]) |
| 83 | export type CheckContext = typeof CheckContext.Type |
| 84 | |
| 85 | /** An Issue is a place to discuss ideas, enhancements, tasks, and bugs for a project. */ |
| 86 | export const Issue = Schema.Struct({ |
| 87 | __typename: Schema.Literal("Issue"), |
| 88 | /** Identifies the issue number. */ |
| 89 | number: Shared.Int, |
| 90 | /** Identifies the issue title. */ |
| 91 | title: Schema.String, |
| 92 | /** Identifies the state of the issue. */ |
| 93 | issueState: GraphQL.enumLiterals(Shared.IssueState.literals) |
| 94 | }) |
| 95 | export interface Issue extends Schema.Struct.Type<typeof Issue.fields> {} |
| 96 | |
| 97 | /** A repository pull request. */ |
| 98 | export const ReferenceCandidatePullRequest = Schema.Struct({ |
| 99 | __typename: Schema.Literal("PullRequest"), |
| 100 | /** Identifies the pull request number. */ |
| 101 | number: Shared.Int, |
| 102 | /** Identifies the pull request title. */ |
| 103 | title: Schema.String, |
| 104 | /** Identifies the state of the pull request. */ |
| 105 | pullRequestState: GraphQL.enumLiterals(Shared.PullRequestState.literals) |
| 106 | }) |
| 107 | export interface ReferenceCandidatePullRequest extends Schema.Struct.Type<typeof ReferenceCandidatePullRequest.fields> {} |
| 108 | |
| 109 | /** Used for return value of Repository.issueOrPullRequest. */ |
| 110 | export const IssueOrPullRequestOther = Schema.Struct({ |
| 111 | __typename: GraphQL.otherTypename<Shared.Typename.IssueOrPullRequest>()(["Issue", "PullRequest"]) |
| 112 | }) |
| 113 | export interface IssueOrPullRequestOther extends Schema.Struct.Type<typeof IssueOrPullRequestOther.fields> {} |
| 114 | |
| 115 | /** |
| 116 | * `fragment ReferenceCandidate on IssueOrPullRequest` |
| 117 | * |
| 118 | * Used for return value of Repository.issueOrPullRequest. |
| 119 | */ |
| 120 | export const ReferenceCandidate = Schema.Union([ |
| 121 | Issue, |
| 122 | ReferenceCandidatePullRequest, |
| 123 | IssueOrPullRequestOther |
| 124 | ]) |
| 125 | export type ReferenceCandidate = typeof ReferenceCandidate.Type |
| 126 | |
| 127 | /** A user is an individual's account on GitHub that owns repositories and can make new content. */ |
| 128 | export const ViewerUser = Schema.Struct({ |
| 129 | /** Identifies the primary key from the database. */ |
| 130 | databaseId: Schema.NullOr(Shared.Int), |
| 131 | /** The username used to login. */ |
| 132 | login: Schema.String |
| 133 | }) |
| 134 | export interface ViewerUser extends Schema.Struct.Type<typeof ViewerUser.fields> {} |
| 135 | |
| 136 | /** `query RoutingIdentityViewer` */ |
| 137 | export const RoutingIdentityViewer = GraphQL.query("RoutingIdentityViewer", { |
| 138 | document: { |
| 139 | variables: [], |
| 140 | selections: [ |
| 141 | { name: "viewer", body: ["{databaseId login}"] } |
| 142 | ], |
| 143 | fragments: [] |
| 144 | }, |
| 145 | result: Schema.Struct({ |
| 146 | /** The currently authenticated user. */ |
| 147 | viewer: ViewerUser |
| 148 | }) |
| 149 | }) |
| 150 | export declare namespace RoutingIdentityViewer { |
| 151 | export type Variables = typeof RoutingIdentityViewer.variables.Type |
| 152 | export type Result = typeof RoutingIdentityViewer.result.Type |
| 153 | } |
| 154 | |
| 155 | /** A user is an individual's account on GitHub that owns repositories and can make new content. */ |
| 156 | export const ActorAvatarsNodesUser = Schema.Struct({ |
| 157 | __typename: Schema.Literal("User"), |
| 158 | /** The username used to login. */ |
| 159 | login: Schema.String, |
| 160 | /** A URL pointing to the user's public avatar. */ |
| 161 | avatarUrl: Shared.URI |
| 162 | }) |
| 163 | export interface ActorAvatarsNodesUser extends Schema.Struct.Type<typeof ActorAvatarsNodesUser.fields> {} |
| 164 | |
| 165 | /** A special type of user which takes actions on behalf of GitHub Apps. */ |
| 166 | export const NodesBot = Schema.Struct({ |
| 167 | __typename: Schema.Literal("Bot"), |
| 168 | /** The username of the actor. */ |
| 169 | login: Schema.String, |
| 170 | /** A URL pointing to the GitHub App's public avatar. */ |
| 171 | avatarUrl: Shared.URI |
| 172 | }) |
| 173 | export interface NodesBot extends Schema.Struct.Type<typeof NodesBot.fields> {} |
| 174 | |
| 175 | /** An object with an ID. */ |
| 176 | export const ActorAvatarsNodesNodeOther = Schema.Struct({ |
| 177 | __typename: GraphQL.otherTypename<Shared.Typename.Node>()(["User", "Bot"]) |
| 178 | }) |
| 179 | export interface ActorAvatarsNodesNodeOther extends Schema.Struct.Type<typeof ActorAvatarsNodesNodeOther.fields> {} |
| 180 | |
| 181 | /** `query ActorAvatars` */ |
| 182 | export const ActorAvatars = GraphQL.query("ActorAvatars", { |
| 183 | document: { |
| 184 | variables: [ |
| 185 | { name: "ids", body: "[ID!]!" } |
| 186 | ], |
| 187 | selections: [ |
| 188 | { name: "nodes", body: ["(ids:$", "ids", "){__typename...on User{login avatarUrl}...on Bot{login avatarUrl}}"] } |
| 189 | ], |
| 190 | fragments: [] |
| 191 | }, |
| 192 | variables: { |
| 193 | ids: Schema.Array(Shared.ID) |
| 194 | }, |
| 195 | result: Schema.Struct({ |
| 196 | /** Lookup nodes by a list of IDs. */ |
| 197 | nodes: Schema.Array(Schema.NullOr(Schema.Union([ |
| 198 | ActorAvatarsNodesUser, |
| 199 | NodesBot, |
| 200 | ActorAvatarsNodesNodeOther |
| 201 | ]))) |
| 202 | }) |
| 203 | }) |
| 204 | export declare namespace ActorAvatars { |
| 205 | export type Variables = typeof ActorAvatars.variables.Type |
| 206 | export type Result = typeof ActorAvatars.result.Type |
| 207 | } |
| 208 | |
| 209 | /** Represents a Git commit. */ |
| 210 | export const MergeCommitCommit = Schema.Struct({ |
| 211 | /** The Git object ID */ |
| 212 | oid: Shared.GitObjectID |
| 213 | }) |
| 214 | export interface MergeCommitCommit extends Schema.Struct.Type<typeof MergeCommitCommit.fields> {} |
| 215 | |
| 216 | /** A user is an individual's account on GitHub that owns repositories and can make new content. */ |
| 217 | export const MergedByUser = Schema.Struct({ |
| 218 | __typename: Schema.Literal("User"), |
| 219 | /** The username used to login. */ |
| 220 | login: Schema.String, |
| 221 | /** A URL pointing to the user's public avatar. */ |
| 222 | avatarUrl: Shared.URI, |
| 223 | /** The user's public profile name. */ |
| 224 | name: Schema.NullOr(Schema.String) |
| 225 | }) |
| 226 | export interface MergedByUser extends Schema.Struct.Type<typeof MergedByUser.fields> {} |
| 227 | |
| 228 | /** Represents an object which can take actions on GitHub. Typically a User or Bot. */ |
| 229 | export const ActorOther = Schema.Struct({ |
| 230 | __typename: GraphQL.otherTypename<Shared.Typename.Actor>()(["User"]), |
| 231 | /** The username of the actor. */ |
| 232 | login: Schema.String, |
| 233 | /** A URL pointing to the actor's public avatar. */ |
| 234 | avatarUrl: Shared.URI |
| 235 | }) |
| 236 | export interface ActorOther extends Schema.Struct.Type<typeof ActorOther.fields> {} |
| 237 | |
| 238 | /** Represents an owner of a Repository. */ |
| 239 | export const RepositoryOwner = Schema.Struct({ |
| 240 | __typename: GraphQL.otherTypename<Shared.Typename.RepositoryOwner>()([]), |
| 241 | /** The username used to login. */ |
| 242 | login: Schema.String |
| 243 | }) |
| 244 | export interface RepositoryOwner extends Schema.Struct.Type<typeof RepositoryOwner.fields> {} |
| 245 | |
| 246 | /** A repository contains the content for a project. */ |
| 247 | export const PullRequestCoreRepositoryPullRequestHeadRepositoryRepository = Schema.Struct({ |
| 248 | /** The repository's name with owner. */ |
| 249 | nameWithOwner: Schema.String, |
| 250 | /** The users permission level on the repository. Will return null if authenticated as an GitHub App. */ |
| 251 | viewerPermission: Schema.NullOr(GraphQL.enumLiterals(Shared.RepositoryPermission.literals)) |
| 252 | }) |
| 253 | export interface PullRequestCoreRepositoryPullRequestHeadRepositoryRepository extends Schema.Struct.Type<typeof PullRequestCoreRepositoryPullRequestHeadRepositoryRepository.fields> {} |
| 254 | |
| 255 | /** Represents a Git reference. */ |
| 256 | export const HeadRefRef = Schema.Struct({ |
| 257 | /** The Node ID of the Ref object */ |
| 258 | id: Shared.ID |
| 259 | }) |
| 260 | export interface HeadRefRef extends Schema.Struct.Type<typeof HeadRefRef.fields> {} |
| 261 | |
| 262 | /** A user is an individual's account on GitHub that owns repositories and can make new content. */ |
| 263 | export const AuthorUser = Schema.Struct({ |
| 264 | __typename: Schema.Literal("User"), |
| 265 | /** The username used to login. */ |
| 266 | login: Schema.String, |
| 267 | /** A URL pointing to the user's public avatar. */ |
| 268 | avatarUrl: Shared.URI, |
| 269 | /** The Node ID of the User object */ |
| 270 | id: Shared.ID, |
| 271 | /** The user's public profile name. */ |
| 272 | name: Schema.NullOr(Schema.String) |
| 273 | }) |
| 274 | export interface AuthorUser extends Schema.Struct.Type<typeof AuthorUser.fields> {} |
| 275 | |
| 276 | /** Represents an auto-merge request for a pull request */ |
| 277 | export const AutoMergeRequest = Schema.Struct({ |
| 278 | /** |
| 279 | * The merge method of the auto-merge request. If a merge queue is required by |
| 280 | * the base branch, this value will be set by the merge queue when merging. |
| 281 | */ |
| 282 | mergeMethod: GraphQL.enumLiterals(Shared.PullRequestMergeMethod.literals) |
| 283 | }) |
| 284 | export interface AutoMergeRequest extends Schema.Struct.Type<typeof AutoMergeRequest.fields> {} |
| 285 | |
| 286 | /** Represents a 'removed_from_merge_queue' event on a given pull request. */ |
| 287 | export const RemovedFromMergeQueueEvent = Schema.Struct({ |
| 288 | __typename: Schema.Literal("RemovedFromMergeQueueEvent"), |
| 289 | /** The Node ID of the RemovedFromMergeQueueEvent object */ |
| 290 | id: Shared.ID, |
| 291 | /** Identifies the date and time when the object was created. */ |
| 292 | createdAt: Shared.DateTime, |
| 293 | /** The reason this pull request was removed from the queue. */ |
| 294 | reason: Schema.NullOr(Schema.String) |
| 295 | }) |
| 296 | export interface RemovedFromMergeQueueEvent extends Schema.Struct.Type<typeof RemovedFromMergeQueueEvent.fields> {} |
| 297 | |
| 298 | /** An item in a pull request timeline */ |
| 299 | export const PullRequestTimelineItemsOther = Schema.Struct({ |
| 300 | __typename: GraphQL.otherTypename<Shared.Typename.PullRequestTimelineItems>()(["RemovedFromMergeQueueEvent"]) |
| 301 | }) |
| 302 | export interface PullRequestTimelineItemsOther extends Schema.Struct.Type<typeof PullRequestTimelineItemsOther.fields> {} |
| 303 | |
| 304 | /** The connection type for PullRequestTimelineItems. */ |
| 305 | export const PullRequestTimelineItemsConnection = Schema.Struct({ |
| 306 | /** A list of nodes. */ |
| 307 | nodes: Schema.NullOr(Schema.Array(Schema.NullOr(Schema.Union([ |
| 308 | RemovedFromMergeQueueEvent, |
| 309 | PullRequestTimelineItemsOther |
| 310 | ])))) |
| 311 | }) |
| 312 | export interface PullRequestTimelineItemsConnection extends Schema.Struct.Type<typeof PullRequestTimelineItemsConnection.fields> {} |
| 313 | |
| 314 | /** Represents a comparison between two commit revisions. */ |
| 315 | export const Comparison = Schema.Struct({ |
| 316 | /** The number of commits behind the base branch. */ |
| 317 | behindBy: Shared.Int |
| 318 | }) |
| 319 | export interface Comparison extends Schema.Struct.Type<typeof Comparison.fields> {} |
| 320 | |
| 321 | /** Represents a Git reference. */ |
| 322 | export const BaseRefRef = Schema.Struct({ |
| 323 | /** Compares the current ref as a base ref to another head ref, if the comparison can be made. */ |
| 324 | compare: Schema.NullOr(Comparison) |
| 325 | }) |
| 326 | export interface BaseRefRef extends Schema.Struct.Type<typeof BaseRefRef.fields> {} |
| 327 | |
| 328 | /** A user is an individual's account on GitHub that owns repositories and can make new content. */ |
| 329 | export const RequestedReviewerUser = Schema.Struct({ |
| 330 | __typename: Schema.Literal("User"), |
| 331 | /** The username used to login. */ |
| 332 | login: Schema.String, |
| 333 | /** The user's public profile name. */ |
| 334 | name: Schema.NullOr(Schema.String) |
| 335 | }) |
| 336 | export interface RequestedReviewerUser extends Schema.Struct.Type<typeof RequestedReviewerUser.fields> {} |
| 337 | |
| 338 | /** A special type of user which takes actions on behalf of GitHub Apps. */ |
| 339 | export const RequestedReviewerBot = Schema.Struct({ |
| 340 | __typename: Schema.Literal("Bot"), |
| 341 | /** The username of the actor. */ |
| 342 | login: Schema.String |
| 343 | }) |
| 344 | export interface RequestedReviewerBot extends Schema.Struct.Type<typeof RequestedReviewerBot.fields> {} |
| 345 | |
| 346 | /** A team of users in an organization. */ |
| 347 | export const Team = Schema.Struct({ |
| 348 | __typename: Schema.Literal("Team"), |
| 349 | /** The slug corresponding to the team. */ |
| 350 | slug: Schema.String, |
| 351 | /** The slug corresponding to the organization and team. */ |
| 352 | combinedSlug: Schema.String, |
| 353 | /** The name of the team. */ |
| 354 | teamName: Schema.String, |
| 355 | /** A URL pointing to the team's avatar. */ |
| 356 | teamAvatarUrl: Schema.NullOr(Shared.URI) |
| 357 | }) |
| 358 | export interface Team extends Schema.Struct.Type<typeof Team.fields> {} |
| 359 | |
| 360 | /** Types that can be requested reviewers. */ |
| 361 | export const RequestedReviewerOther = Schema.Struct({ |
| 362 | __typename: GraphQL.otherTypename<Shared.Typename.RequestedReviewer>()(["User", "Bot", "Team"]) |
| 363 | }) |
| 364 | export interface RequestedReviewerOther extends Schema.Struct.Type<typeof RequestedReviewerOther.fields> {} |
| 365 | |
| 366 | /** A request for a user to review a pull request. */ |
| 367 | export const PullRequestCoreRepositoryPullRequestReviewRequestsNodesReviewRequest = Schema.Struct({ |
| 368 | /** The reviewer that is requested. */ |
| 369 | requestedReviewer: Schema.NullOr(Schema.Union([ |
| 370 | RequestedReviewerUser, |
| 371 | RequestedReviewerBot, |
| 372 | Team, |
| 373 | RequestedReviewerOther |
| 374 | ])) |
| 375 | }) |
| 376 | export interface PullRequestCoreRepositoryPullRequestReviewRequestsNodesReviewRequest extends Schema.Struct.Type<typeof PullRequestCoreRepositoryPullRequestReviewRequestsNodesReviewRequest.fields> {} |
| 377 | |
| 378 | /** The connection type for ReviewRequest. */ |
| 379 | export const PullRequestCoreRepositoryPullRequestReviewRequestsReviewRequestConnection = Schema.Struct({ |
| 380 | /** A list of nodes. */ |
| 381 | nodes: Schema.NullOr(Schema.Array(Schema.NullOr(PullRequestCoreRepositoryPullRequestReviewRequestsNodesReviewRequest))) |
| 382 | }) |
| 383 | export interface PullRequestCoreRepositoryPullRequestReviewRequestsReviewRequestConnection extends Schema.Struct.Type<typeof PullRequestCoreRepositoryPullRequestReviewRequestsReviewRequestConnection.fields> {} |
| 384 | |
| 385 | /** A label for categorizing Issues, Pull Requests, Milestones, or Discussions with a given Repository. */ |
| 386 | export const PullRequestCoreRepositoryPullRequestLabelsNodesLabel = Schema.Struct({ |
| 387 | /** Identifies the label name. */ |
| 388 | name: Schema.String, |
| 389 | /** Identifies the label color. */ |
| 390 | color: Schema.String, |
| 391 | /** A brief description of this label. */ |
| 392 | description: Schema.NullOr(Schema.String) |
| 393 | }) |
| 394 | export interface PullRequestCoreRepositoryPullRequestLabelsNodesLabel extends Schema.Struct.Type<typeof PullRequestCoreRepositoryPullRequestLabelsNodesLabel.fields> {} |
| 395 | |
| 396 | /** The connection type for Label. */ |
| 397 | export const PullRequestCoreRepositoryPullRequestLabelsLabelConnection = Schema.Struct({ |
| 398 | /** A list of nodes. */ |
| 399 | nodes: Schema.NullOr(Schema.Array(Schema.NullOr(PullRequestCoreRepositoryPullRequestLabelsNodesLabel))) |
| 400 | }) |
| 401 | export interface PullRequestCoreRepositoryPullRequestLabelsLabelConnection extends Schema.Struct.Type<typeof PullRequestCoreRepositoryPullRequestLabelsLabelConnection.fields> {} |
| 402 | |
| 403 | /** Information about pagination in a connection. */ |
| 404 | export const ContextsPageInfoPageInfo = Schema.Struct({ |
| 405 | /** When paginating forwards, are there more items? */ |
| 406 | hasNextPage: Schema.Boolean, |
| 407 | /** When paginating forwards, the cursor to continue. */ |
| 408 | endCursor: Schema.NullOr(Schema.String) |
| 409 | }) |
| 410 | export interface ContextsPageInfoPageInfo extends Schema.Struct.Type<typeof ContextsPageInfoPageInfo.fields> {} |
| 411 | |
| 412 | /** The connection type for StatusCheckRollupContext. */ |
| 413 | export const StatusCheckRollupContextConnection = Schema.Struct({ |
| 414 | /** A list of nodes. */ |
| 415 | nodes: Schema.NullOr(Schema.Array(Schema.NullOr(CheckContext))), |
| 416 | /** Information to aid in pagination. */ |
| 417 | pageInfo: ContextsPageInfoPageInfo |
| 418 | }) |
| 419 | export interface StatusCheckRollupContextConnection extends Schema.Struct.Type<typeof StatusCheckRollupContextConnection.fields> {} |
| 420 | |
| 421 | /** Represents the rollup for both the check runs and status for a commit. */ |
| 422 | export const StatusCheckRollup = Schema.Struct({ |
| 423 | /** A list of status contexts and check runs for this commit. */ |
| 424 | contexts: StatusCheckRollupContextConnection |
| 425 | }) |
| 426 | export interface StatusCheckRollup extends Schema.Struct.Type<typeof StatusCheckRollup.fields> {} |
| 427 | |
| 428 | /** Represents a Git commit. */ |
| 429 | export const PullRequestCoreRepositoryPullRequestCommitsNodesCommitCommit = Schema.Struct({ |
| 430 | /** Check and Status rollup information for this commit. */ |
| 431 | statusCheckRollup: Schema.NullOr(StatusCheckRollup) |
| 432 | }) |
| 433 | export interface PullRequestCoreRepositoryPullRequestCommitsNodesCommitCommit extends Schema.Struct.Type<typeof PullRequestCoreRepositoryPullRequestCommitsNodesCommitCommit.fields> {} |
| 434 | |
| 435 | /** Represents a Git commit part of a pull request. */ |
| 436 | export const PullRequestCoreRepositoryPullRequestCommitsNodesPullRequestCommit = Schema.Struct({ |
| 437 | /** The Git commit object */ |
| 438 | commit: PullRequestCoreRepositoryPullRequestCommitsNodesCommitCommit |
| 439 | }) |
| 440 | export interface PullRequestCoreRepositoryPullRequestCommitsNodesPullRequestCommit extends Schema.Struct.Type<typeof PullRequestCoreRepositoryPullRequestCommitsNodesPullRequestCommit.fields> {} |
| 441 | |
| 442 | /** The connection type for PullRequestCommit. */ |
| 443 | export const PullRequestCoreRepositoryPullRequestCommitsPullRequestCommitConnection = Schema.Struct({ |
| 444 | /** A list of nodes. */ |
| 445 | nodes: Schema.NullOr(Schema.Array(Schema.NullOr(PullRequestCoreRepositoryPullRequestCommitsNodesPullRequestCommit))) |
| 446 | }) |
| 447 | export interface PullRequestCoreRepositoryPullRequestCommitsPullRequestCommitConnection extends Schema.Struct.Type<typeof PullRequestCoreRepositoryPullRequestCommitsPullRequestCommitConnection.fields> {} |
| 448 | |
| 449 | /** A repository pull request. */ |
| 450 | export const PullRequestCoreRepositoryPullRequestPullRequest = Schema.Struct({ |
| 451 | /** Identifies the pull request number. */ |
| 452 | number: Shared.Int, |
| 453 | /** Identifies the pull request title. */ |
| 454 | title: Schema.String, |
| 455 | /** The HTTP URL for this pull request. */ |
| 456 | url: Shared.URI, |
| 457 | /** The body as Markdown. */ |
| 458 | body: Schema.String, |
| 459 | /** Identifies the state of the pull request. */ |
| 460 | state: GraphQL.enumLiterals(Shared.PullRequestState.literals), |
| 461 | /** Identifies if the pull request is a draft. */ |
| 462 | isDraft: Schema.Boolean, |
| 463 | /** Whether or not the pull request can be merged based on the existence of merge conflicts. */ |
| 464 | mergeable: GraphQL.enumLiterals(Shared.MergeableState.literals), |
| 465 | /** Detailed information about the current pull request merge state status. */ |
| 466 | mergeStateStatus: GraphQL.enumLiterals(Shared.MergeStateStatus.literals), |
| 467 | /** The current status of this pull request with respect to code review. */ |
| 468 | reviewDecision: Schema.NullOr(GraphQL.enumLiterals(Shared.PullRequestReviewDecision.literals)), |
| 469 | /** The number of additions in this pull request. */ |
| 470 | additions: Shared.Int, |
| 471 | /** The number of deletions in this pull request. */ |
| 472 | deletions: Shared.Int, |
| 473 | /** The number of changed files in this pull request. */ |
| 474 | changedFiles: Shared.Int, |
| 475 | /** Identifies the date and time when the object was created. */ |
| 476 | createdAt: Shared.DateTime, |
| 477 | /** Identifies the date and time when the object was last updated. */ |
| 478 | updatedAt: Shared.DateTime, |
| 479 | /** The date and time that the pull request was merged. */ |
| 480 | mergedAt: Schema.NullOr(Shared.DateTime), |
| 481 | /** The commit that was created when this pull request was merged. */ |
| 482 | mergeCommit: Schema.NullOr(MergeCommitCommit), |
| 483 | /** The actor who merged the pull request. */ |
| 484 | mergedBy: Schema.NullOr(Schema.Union([ |
| 485 | MergedByUser, |
| 486 | ActorOther |
| 487 | ])), |
| 488 | /** Identifies the date and time when the object was closed. */ |
| 489 | closedAt: Schema.NullOr(Shared.DateTime), |
| 490 | /** Identifies the name of the head Ref associated with the pull request, even if the ref has been deleted. */ |
| 491 | headRefName: Schema.String, |
| 492 | /** Identifies the name of the base Ref associated with the pull request, even if the ref has been deleted. */ |
| 493 | baseRefName: Schema.String, |
| 494 | /** Identifies the oid of the head ref associated with the pull request, even if the ref has been deleted. */ |
| 495 | headRefOid: Shared.GitObjectID, |
| 496 | /** The head and base repositories are different. */ |
| 497 | isCrossRepository: Schema.Boolean, |
| 498 | /** Indicates whether maintainers can modify the pull request. */ |
| 499 | maintainerCanModify: Schema.Boolean, |
| 500 | /** The owner of the repository associated with this pull request's head Ref. */ |
| 501 | headRepositoryOwner: Schema.NullOr(RepositoryOwner), |
| 502 | /** The repository associated with this pull request's head Ref. */ |
| 503 | headRepository: Schema.NullOr(PullRequestCoreRepositoryPullRequestHeadRepositoryRepository), |
| 504 | /** Identifies the head Ref associated with the pull request. */ |
| 505 | headRef: Schema.NullOr(HeadRefRef), |
| 506 | /** The actor who authored the comment. */ |
| 507 | author: Schema.NullOr(Schema.Union([ |
| 508 | AuthorUser, |
| 509 | ActorOther |
| 510 | ])), |
| 511 | /** Returns the auto-merge request object if one exists for this pull request. */ |
| 512 | autoMergeRequest: Schema.NullOr(AutoMergeRequest), |
| 513 | /** A list of events, comments, commits, etc. associated with the pull request. */ |
| 514 | mergeQueueRemovals: Schema.optionalKey(PullRequestTimelineItemsConnection), |
| 515 | /** Check if the current viewer can update this object. */ |
| 516 | viewerCanUpdate: Schema.Boolean, |
| 517 | /** Did the viewer author this comment. */ |
| 518 | viewerDidAuthor: Schema.Boolean, |
| 519 | /** |
| 520 | * Whether or not the viewer can update the head ref of this PR, by merging or rebasing the base ref. |
| 521 | * If the head ref is up to date or unable to be updated by this user, this will return false. |
| 522 | */ |
| 523 | viewerCanUpdateBranch: Schema.Boolean, |
| 524 | /** Identifies the base Ref associated with the pull request. */ |
| 525 | baseRef: Schema.NullOr(BaseRefRef), |
| 526 | /** A list of review requests associated with the pull request. */ |
| 527 | reviewRequests: Schema.NullOr(PullRequestCoreRepositoryPullRequestReviewRequestsReviewRequestConnection), |
| 528 | /** A list of labels associated with the object. */ |
| 529 | labels: Schema.NullOr(PullRequestCoreRepositoryPullRequestLabelsLabelConnection), |
| 530 | /** A list of commits present in this pull request's head branch not present in the base branch. */ |
| 531 | commits: PullRequestCoreRepositoryPullRequestCommitsPullRequestCommitConnection |
| 532 | }) |
| 533 | export interface PullRequestCoreRepositoryPullRequestPullRequest extends Schema.Struct.Type<typeof PullRequestCoreRepositoryPullRequestPullRequest.fields> {} |
| 534 | |
| 535 | /** A repository contains the content for a project. */ |
| 536 | export const PullRequestCoreRepositoryRepository = Schema.Struct({ |
| 537 | /** Whether or not PRs are merged with a merge commit on this repository. */ |
| 538 | mergeCommitAllowed: Schema.Boolean, |
| 539 | /** Whether or not squash-merging is enabled on this repository. */ |
| 540 | squashMergeAllowed: Schema.Boolean, |
| 541 | /** Whether or not rebase-merging is enabled on this repository. */ |
| 542 | rebaseMergeAllowed: Schema.Boolean, |
| 543 | /** Whether or not Auto-merge can be enabled on pull requests in this repository. */ |
| 544 | autoMergeAllowed: Schema.Boolean, |
| 545 | /** The users permission level on the repository. Will return null if authenticated as an GitHub App. */ |
| 546 | viewerPermission: Schema.NullOr(GraphQL.enumLiterals(Shared.RepositoryPermission.literals)), |
| 547 | /** Returns a single pull request from the current repository by number. */ |
| 548 | pullRequest: Schema.NullOr(PullRequestCoreRepositoryPullRequestPullRequest) |
| 549 | }) |
| 550 | export interface PullRequestCoreRepositoryRepository extends Schema.Struct.Type<typeof PullRequestCoreRepositoryRepository.fields> {} |
| 551 | |
| 552 | /** `query PullRequestCore` */ |
| 553 | export const PullRequestCore = GraphQL.query("PullRequestCore", { |
| 554 | document: { |
| 555 | variables: [ |
| 556 | { name: "owner", body: "String!" }, |
| 557 | { name: "name", body: "String!" }, |
| 558 | { name: "number", body: "Int!" }, |
| 559 | { name: "headRef", body: "String!" }, |
| 560 | { name: "required", body: "Boolean!" }, |
| 561 | { name: "requestedReviewers", body: "Int!" }, |
| 562 | { name: "mergeQueue", body: "Boolean!" } |
| 563 | ], |
| 564 | selections: [ |
| 565 | { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){mergeCommitAllowed squashMergeAllowed rebaseMergeAllowed autoMergeAllowed viewerPermission pullRequest(number:$", "number", "){number title url body state isDraft mergeable mergeStateStatus reviewDecision additions deletions changedFiles createdAt updatedAt mergedAt mergeCommit{oid}mergedBy{__typename login avatarUrl...on User{name}}closedAt headRefName baseRefName headRefOid isCrossRepository maintainerCanModify headRepositoryOwner{__typename login}headRepository{nameWithOwner viewerPermission}headRef{id}author{__typename login avatarUrl...on User{id name}}autoMergeRequest{mergeMethod}mergeQueueRemovals:timelineItems(last:1 itemTypes:[REMOVED_FROM_MERGE_QUEUE_EVENT])@include(if:$", "mergeQueue", "){nodes{__typename...on RemovedFromMergeQueueEvent{id createdAt reason}}}viewerCanUpdate viewerDidAuthor viewerCanUpdateBranch baseRef{compare(headRef:$", "headRef", "){behindBy}}reviewRequests(first:$", "requestedReviewers", "){nodes{requestedReviewer{__typename...on User{login name}...on Bot{login}...on Team{slug combinedSlug teamName:name teamAvatarUrl:avatarUrl}}}}labels(first:100){nodes{name color description}}commits(last:1){nodes{commit{statusCheckRollup{contexts(first:100){nodes{__typename...", "CheckContext", "}pageInfo{hasNextPage endCursor}}}}}}}}"] } |
| 566 | ], |
| 567 | fragments: [ |
| 568 | { name: "CheckContext", body: ["on StatusCheckRollupContext{__typename...on StatusContext{context state targetUrl createdAt description isRequired(pullRequestNumber:$", "number", ")@include(if:$", "required", ")}...on CheckRun{name status conclusion startedAt completedAt detailsUrl isRequired(pullRequestNumber:$", "number", ")@include(if:$", "required", ")checkSuite{workflowRun{workflow{name}}}}}"] } |
| 569 | ] |
| 570 | }, |
| 571 | variables: { |
| 572 | owner: Schema.String, |
| 573 | name: Schema.String, |
| 574 | number: Shared.Int, |
| 575 | headRef: Schema.String, |
| 576 | required: Schema.Boolean, |
| 577 | requestedReviewers: Shared.Int, |
| 578 | mergeQueue: Schema.Boolean |
| 579 | }, |
| 580 | result: Schema.Struct({ |
| 581 | /** Lookup a given repository by the owner and repository name. */ |
| 582 | repository: Schema.NullOr(PullRequestCoreRepositoryRepository) |
| 583 | }) |
| 584 | }) |
| 585 | export declare namespace PullRequestCore { |
| 586 | export type Variables = typeof PullRequestCore.variables.Type |
| 587 | export type Result = typeof PullRequestCore.result.Type |
| 588 | } |
| 589 | |
| 590 | /** A repository pull request. */ |
| 591 | export const PullRequestCheckContextsRepositoryPullRequestPullRequest = Schema.Struct({ |
| 592 | /** Identifies the oid of the head ref associated with the pull request, even if the ref has been deleted. */ |
| 593 | headRefOid: Shared.GitObjectID, |
| 594 | /** A list of commits present in this pull request's head branch not present in the base branch. */ |
| 595 | commits: PullRequestCoreRepositoryPullRequestCommitsPullRequestCommitConnection |
| 596 | }) |
| 597 | export interface PullRequestCheckContextsRepositoryPullRequestPullRequest extends Schema.Struct.Type<typeof PullRequestCheckContextsRepositoryPullRequestPullRequest.fields> {} |
| 598 | |
| 599 | /** A repository contains the content for a project. */ |
| 600 | export const PullRequestCheckContextsRepositoryRepository = Schema.Struct({ |
| 601 | /** Returns a single pull request from the current repository by number. */ |
| 602 | pullRequest: Schema.NullOr(PullRequestCheckContextsRepositoryPullRequestPullRequest) |
| 603 | }) |
| 604 | export interface PullRequestCheckContextsRepositoryRepository extends Schema.Struct.Type<typeof PullRequestCheckContextsRepositoryRepository.fields> {} |
| 605 | |
| 606 | /** `query PullRequestCheckContexts` */ |
| 607 | export const PullRequestCheckContexts = GraphQL.query("PullRequestCheckContexts", { |
| 608 | document: { |
| 609 | variables: [ |
| 610 | { name: "owner", body: "String!" }, |
| 611 | { name: "name", body: "String!" }, |
| 612 | { name: "number", body: "Int!" }, |
| 613 | { name: "required", body: "Boolean!" }, |
| 614 | { name: "after", body: "String" } |
| 615 | ], |
| 616 | selections: [ |
| 617 | { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){pullRequest(number:$", "number", "){headRefOid commits(last:1){nodes{commit{statusCheckRollup{contexts(first:100 after:$", "after", "){nodes{__typename...", "CheckContext", "}pageInfo{hasNextPage endCursor}}}}}}}}"] } |
| 618 | ], |
| 619 | fragments: [ |
| 620 | { name: "CheckContext", body: ["on StatusCheckRollupContext{__typename...on StatusContext{context state targetUrl createdAt description isRequired(pullRequestNumber:$", "number", ")@include(if:$", "required", ")}...on CheckRun{name status conclusion startedAt completedAt detailsUrl isRequired(pullRequestNumber:$", "number", ")@include(if:$", "required", ")checkSuite{workflowRun{workflow{name}}}}}"] } |
| 621 | ] |
| 622 | }, |
| 623 | variables: { |
| 624 | owner: Schema.String, |
| 625 | name: Schema.String, |
| 626 | number: Shared.Int, |
| 627 | required: Schema.Boolean, |
| 628 | after: Schema.optional(Schema.NullOr(Schema.String)) |
| 629 | }, |
| 630 | result: Schema.Struct({ |
| 631 | /** Lookup a given repository by the owner and repository name. */ |
| 632 | repository: Schema.NullOr(PullRequestCheckContextsRepositoryRepository) |
| 633 | }) |
| 634 | }) |
| 635 | export declare namespace PullRequestCheckContexts { |
| 636 | export type Variables = typeof PullRequestCheckContexts.variables.Type |
| 637 | export type Result = typeof PullRequestCheckContexts.result.Type |
| 638 | } |
| 639 | |
| 640 | /** A repository pull request. */ |
| 641 | export const PullRequestPreviewRepositoryPullRequestPullRequest = Schema.Struct({ |
| 642 | /** Identifies the pull request number. */ |
| 643 | number: Shared.Int, |
| 644 | /** Identifies the pull request title. */ |
| 645 | title: Schema.String, |
| 646 | /** The HTTP URL for this pull request. */ |
| 647 | url: Shared.URI, |
| 648 | /** Identifies the state of the pull request. */ |
| 649 | state: GraphQL.enumLiterals(Shared.PullRequestState.literals), |
| 650 | /** Identifies if the pull request is a draft. */ |
| 651 | isDraft: Schema.Boolean, |
| 652 | /** Identifies the date and time when the object was created. */ |
| 653 | createdAt: Shared.DateTime, |
| 654 | /** The actor who authored the comment. */ |
| 655 | author: Schema.NullOr(Schema.Union([ |
| 656 | MergedByUser, |
| 657 | ActorOther |
| 658 | ])) |
| 659 | }) |
| 660 | export interface PullRequestPreviewRepositoryPullRequestPullRequest extends Schema.Struct.Type<typeof PullRequestPreviewRepositoryPullRequestPullRequest.fields> {} |
| 661 | |
| 662 | /** A repository contains the content for a project. */ |
| 663 | export const PullRequestPreviewRepositoryRepository = Schema.Struct({ |
| 664 | /** Returns a single pull request from the current repository by number. */ |
| 665 | pullRequest: Schema.NullOr(PullRequestPreviewRepositoryPullRequestPullRequest) |
| 666 | }) |
| 667 | export interface PullRequestPreviewRepositoryRepository extends Schema.Struct.Type<typeof PullRequestPreviewRepositoryRepository.fields> {} |
| 668 | |
| 669 | /** `query PullRequestPreview` */ |
| 670 | export const PullRequestPreview = GraphQL.query("PullRequestPreview", { |
| 671 | document: { |
| 672 | variables: [ |
| 673 | { name: "owner", body: "String!" }, |
| 674 | { name: "name", body: "String!" }, |
| 675 | { name: "number", body: "Int!" } |
| 676 | ], |
| 677 | selections: [ |
| 678 | { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){pullRequest(number:$", "number", "){number title url state isDraft createdAt author{__typename login avatarUrl...on User{name}}}}"] } |
| 679 | ], |
| 680 | fragments: [] |
| 681 | }, |
| 682 | variables: { |
| 683 | owner: Schema.String, |
| 684 | name: Schema.String, |
| 685 | number: Shared.Int |
| 686 | }, |
| 687 | result: Schema.Struct({ |
| 688 | /** Lookup a given repository by the owner and repository name. */ |
| 689 | repository: Schema.NullOr(PullRequestPreviewRepositoryRepository) |
| 690 | }) |
| 691 | }) |
| 692 | export declare namespace PullRequestPreview { |
| 693 | export type Variables = typeof PullRequestPreview.variables.Type |
| 694 | export type Result = typeof PullRequestPreview.result.Type |
| 695 | } |
| 696 | |
| 697 | /** The connection type for Commit. */ |
| 698 | export const CommitConnection = Schema.Struct({ |
| 699 | /** Identifies the total count of items in the connection. */ |
| 700 | totalCount: Shared.Int |
| 701 | }) |
| 702 | export interface CommitConnection extends Schema.Struct.Type<typeof CommitConnection.fields> {} |
| 703 | |
| 704 | /** A user is an individual's account on GitHub that owns repositories and can make new content. */ |
| 705 | export const UserUser = Schema.Struct({ |
| 706 | /** The username used to login. */ |
| 707 | login: Schema.String |
| 708 | }) |
| 709 | export interface UserUser extends Schema.Struct.Type<typeof UserUser.fields> {} |
| 710 | |
| 711 | /** Represents an actor in a Git commit (ie. an author or committer). */ |
| 712 | export const GitActor = Schema.Struct({ |
| 713 | /** The name in the Git commit. */ |
| 714 | name: Schema.NullOr(Schema.String), |
| 715 | /** The email in the Git commit. */ |
| 716 | email: Schema.NullOr(Schema.String), |
| 717 | /** The GitHub user corresponding to the email field. Null if no such user exists. */ |
| 718 | user: Schema.NullOr(UserUser) |
| 719 | }) |
| 720 | export interface GitActor extends Schema.Struct.Type<typeof GitActor.fields> {} |
| 721 | |
| 722 | /** The connection type for GitActor. */ |
| 723 | export const GitActorConnection = Schema.Struct({ |
| 724 | /** A list of nodes. */ |
| 725 | nodes: Schema.NullOr(Schema.Array(Schema.NullOr(GitActor))) |
| 726 | }) |
| 727 | export interface GitActorConnection extends Schema.Struct.Type<typeof GitActorConnection.fields> {} |
| 728 | |
| 729 | /** Represents a Git commit. */ |
| 730 | export const PullRequestActivityRepositoryPullRequestCommitsNodesCommitCommit = Schema.Struct({ |
| 731 | /** The Node ID of the Commit object */ |
| 732 | id: Shared.ID, |
| 733 | /** The Git object ID */ |
| 734 | oid: Shared.GitObjectID, |
| 735 | /** The Git commit message headline */ |
| 736 | messageHeadline: Schema.String, |
| 737 | /** The datetime when this commit was committed. */ |
| 738 | committedDate: Shared.DateTime, |
| 739 | /** The parents of a commit. */ |
| 740 | parents: CommitConnection, |
| 741 | /** |
| 742 | * The list of authors for this commit based on the git author and the Co-authored-by |
| 743 | * message trailer. The git author will always be first. |
| 744 | */ |
| 745 | authors: GitActorConnection |
| 746 | }) |
| 747 | export interface PullRequestActivityRepositoryPullRequestCommitsNodesCommitCommit extends Schema.Struct.Type<typeof PullRequestActivityRepositoryPullRequestCommitsNodesCommitCommit.fields> {} |
| 748 | |
| 749 | /** Represents a Git commit part of a pull request. */ |
| 750 | export const PullRequestActivityRepositoryPullRequestCommitsNodesPullRequestCommit = Schema.Struct({ |
| 751 | /** The Git commit object */ |
| 752 | commit: PullRequestActivityRepositoryPullRequestCommitsNodesCommitCommit |
| 753 | }) |
| 754 | export interface PullRequestActivityRepositoryPullRequestCommitsNodesPullRequestCommit extends Schema.Struct.Type<typeof PullRequestActivityRepositoryPullRequestCommitsNodesPullRequestCommit.fields> {} |
| 755 | |
| 756 | /** The connection type for PullRequestCommit. */ |
| 757 | export const PullRequestActivityRepositoryPullRequestCommitsPullRequestCommitConnection = Schema.Struct({ |
| 758 | /** A list of nodes. */ |
| 759 | nodes: Schema.NullOr(Schema.Array(Schema.NullOr(PullRequestActivityRepositoryPullRequestCommitsNodesPullRequestCommit))) |
| 760 | }) |
| 761 | export interface PullRequestActivityRepositoryPullRequestCommitsPullRequestCommitConnection extends Schema.Struct.Type<typeof PullRequestActivityRepositoryPullRequestCommitsPullRequestCommitConnection.fields> {} |
| 762 | |
| 763 | /** Represents a comment on an Issue. */ |
| 764 | export const NodesIssueComment = Schema.Struct({ |
| 765 | /** The Node ID of the IssueComment object */ |
| 766 | id: Shared.ID, |
| 767 | /** The body as Markdown. */ |
| 768 | body: Schema.String, |
| 769 | /** Identifies the date and time when the object was created. */ |
| 770 | createdAt: Shared.DateTime, |
| 771 | /** The moment the editor made the last edit */ |
| 772 | lastEditedAt: Schema.NullOr(Shared.DateTime), |
| 773 | /** The HTTP URL for this issue comment */ |
| 774 | url: Shared.URI, |
| 775 | /** Returns whether or not a comment has been minimized. */ |
| 776 | isMinimized: Schema.Boolean, |
| 777 | /** The actor who authored the comment. */ |
| 778 | author: Schema.NullOr(Schema.Union([ |
| 779 | MergedByUser, |
| 780 | ActorOther |
| 781 | ])) |
| 782 | }) |
| 783 | export interface NodesIssueComment extends Schema.Struct.Type<typeof NodesIssueComment.fields> {} |
| 784 | |
| 785 | /** The connection type for IssueComment. */ |
| 786 | export const IssueCommentConnection = Schema.Struct({ |
| 787 | /** Information to aid in pagination. */ |
| 788 | pageInfo: ContextsPageInfoPageInfo, |
| 789 | /** A list of nodes. */ |
| 790 | nodes: Schema.NullOr(Schema.Array(Schema.NullOr(NodesIssueComment))) |
| 791 | }) |
| 792 | export interface IssueCommentConnection extends Schema.Struct.Type<typeof IssueCommentConnection.fields> {} |
| 793 | |
| 794 | /** A review object for a given pull request. */ |
| 795 | export const NodesPullRequestReview = Schema.Struct({ |
| 796 | /** The Node ID of the PullRequestReview object */ |
| 797 | id: Shared.ID, |
| 798 | /** Identifies the pull request review body. */ |
| 799 | body: Schema.String, |
| 800 | /** Identifies the current state of the pull request review. */ |
| 801 | state: GraphQL.enumLiterals(Shared.PullRequestReviewState.literals), |
| 802 | /** Identifies when the Pull Request Review was submitted */ |
| 803 | submittedAt: Schema.NullOr(Shared.DateTime), |
| 804 | /** The moment the editor made the last edit */ |
| 805 | lastEditedAt: Schema.NullOr(Shared.DateTime), |
| 806 | /** The HTTP URL permalink for this PullRequestReview. */ |
| 807 | url: Shared.URI, |
| 808 | /** Returns whether or not a comment has been minimized. */ |
| 809 | isMinimized: Schema.Boolean, |
| 810 | /** The actor who authored the comment. */ |
| 811 | author: Schema.NullOr(Schema.Union([ |
| 812 | MergedByUser, |
| 813 | ActorOther |
| 814 | ])) |
| 815 | }) |
| 816 | export interface NodesPullRequestReview extends Schema.Struct.Type<typeof NodesPullRequestReview.fields> {} |
| 817 | |
| 818 | /** The connection type for PullRequestReview. */ |
| 819 | export const PullRequestReviewConnection = Schema.Struct({ |
| 820 | /** Information to aid in pagination. */ |
| 821 | pageInfo: ContextsPageInfoPageInfo, |
| 822 | /** A list of nodes. */ |
| 823 | nodes: Schema.NullOr(Schema.Array(Schema.NullOr(NodesPullRequestReview))) |
| 824 | }) |
| 825 | export interface PullRequestReviewConnection extends Schema.Struct.Type<typeof PullRequestReviewConnection.fields> {} |
| 826 | |
| 827 | /** A repository pull request. */ |
| 828 | export const PullRequestActivityRepositoryPullRequestPullRequest = Schema.Struct({ |
| 829 | /** The actor who authored the comment. */ |
| 830 | author: Schema.optionalKey(Schema.NullOr(Schema.Union([ |
| 831 | MergedByUser, |
| 832 | ActorOther |
| 833 | ]))), |
| 834 | /** A list of commits present in this pull request's head branch not present in the base branch. */ |
| 835 | commits: Schema.optionalKey(PullRequestActivityRepositoryPullRequestCommitsPullRequestCommitConnection), |
| 836 | /** A list of comments associated with the pull request. */ |
| 837 | comments: Schema.optionalKey(IssueCommentConnection), |
| 838 | /** A list of reviews associated with the pull request. */ |
| 839 | reviews: Schema.optionalKey(Schema.NullOr(PullRequestReviewConnection)) |
| 840 | }) |
| 841 | export interface PullRequestActivityRepositoryPullRequestPullRequest extends Schema.Struct.Type<typeof PullRequestActivityRepositoryPullRequestPullRequest.fields> {} |
| 842 | |
| 843 | /** A repository contains the content for a project. */ |
| 844 | export const PullRequestActivityRepositoryRepository = Schema.Struct({ |
| 845 | /** Returns a single pull request from the current repository by number. */ |
| 846 | pullRequest: Schema.NullOr(PullRequestActivityRepositoryPullRequestPullRequest) |
| 847 | }) |
| 848 | export interface PullRequestActivityRepositoryRepository extends Schema.Struct.Type<typeof PullRequestActivityRepositoryRepository.fields> {} |
| 849 | |
| 850 | /** `query PullRequestActivity` */ |
| 851 | export const PullRequestActivity = GraphQL.query("PullRequestActivity", { |
| 852 | document: { |
| 853 | variables: [ |
| 854 | { name: "owner", body: "String!" }, |
| 855 | { name: "name", body: "String!" }, |
| 856 | { name: "number", body: "Int!" }, |
| 857 | { name: "head", body: "Boolean!" }, |
| 858 | { name: "withComments", body: "Boolean!" }, |
| 859 | { name: "commentsAfter", body: "String" }, |
| 860 | { name: "withReviews", body: "Boolean!" }, |
| 861 | { name: "reviewsAfter", body: "String" } |
| 862 | ], |
| 863 | selections: [ |
| 864 | { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){pullRequest(number:$", "number", "){author@include(if:$", "head", "){__typename login avatarUrl...on User{name}}commits(last:100)@include(if:$", "head", "){nodes{commit{id oid messageHeadline committedDate parents(first:1){totalCount}authors(first:10){nodes{name email user{login}}}}}}comments(first:100 after:$", "commentsAfter", ")@include(if:$", "withComments", "){pageInfo{hasNextPage endCursor}nodes{id body createdAt lastEditedAt url isMinimized author{__typename login avatarUrl...on User{name}}}}reviews(first:100 after:$", "reviewsAfter", ")@include(if:$", "withReviews", "){pageInfo{hasNextPage endCursor}nodes{id body state submittedAt lastEditedAt url isMinimized author{__typename login avatarUrl...on User{name}}}}}}"] } |
| 865 | ], |
| 866 | fragments: [] |
| 867 | }, |
| 868 | variables: { |
| 869 | owner: Schema.String, |
| 870 | name: Schema.String, |
| 871 | number: Shared.Int, |
| 872 | head: Schema.Boolean, |
| 873 | withComments: Schema.Boolean, |
| 874 | commentsAfter: Schema.optional(Schema.NullOr(Schema.String)), |
| 875 | withReviews: Schema.Boolean, |
| 876 | reviewsAfter: Schema.optional(Schema.NullOr(Schema.String)) |
| 877 | }, |
| 878 | result: Schema.Struct({ |
| 879 | /** Lookup a given repository by the owner and repository name. */ |
| 880 | repository: Schema.NullOr(PullRequestActivityRepositoryRepository) |
| 881 | }) |
| 882 | }) |
| 883 | export declare namespace PullRequestActivity { |
| 884 | export type Variables = typeof PullRequestActivity.variables.Type |
| 885 | export type Result = typeof PullRequestActivity.result.Type |
| 886 | } |
| 887 | |
| 888 | /** Represents a Git commit. */ |
| 889 | export const NodesCommit = Schema.Struct({ |
| 890 | __typename: Schema.Literal("Commit"), |
| 891 | /** The Git object ID */ |
| 892 | oid: Shared.GitObjectID, |
| 893 | /** The number of additions in this commit. */ |
| 894 | additions: Shared.Int, |
| 895 | /** The number of deletions in this commit. */ |
| 896 | deletions: Shared.Int |
| 897 | }) |
| 898 | export interface NodesCommit extends Schema.Struct.Type<typeof NodesCommit.fields> {} |
| 899 | |
| 900 | /** An object with an ID. */ |
| 901 | export const PullRequestCommitStatsNodesNodeOther = Schema.Struct({ |
| 902 | __typename: GraphQL.otherTypename<Shared.Typename.Node>()(["Commit"]) |
| 903 | }) |
| 904 | export interface PullRequestCommitStatsNodesNodeOther extends Schema.Struct.Type<typeof PullRequestCommitStatsNodesNodeOther.fields> {} |
| 905 | |
| 906 | /** `query PullRequestCommitStats` */ |
| 907 | export const PullRequestCommitStats = GraphQL.query("PullRequestCommitStats", { |
| 908 | document: { |
| 909 | variables: [ |
| 910 | { name: "ids", body: "[ID!]!" } |
| 911 | ], |
| 912 | selections: [ |
| 913 | { name: "nodes", body: ["(ids:$", "ids", "){__typename...on Commit{oid additions deletions}}"] } |
| 914 | ], |
| 915 | fragments: [] |
| 916 | }, |
| 917 | variables: { |
| 918 | ids: Schema.Array(Shared.ID) |
| 919 | }, |
| 920 | result: Schema.Struct({ |
| 921 | /** Lookup nodes by a list of IDs. */ |
| 922 | nodes: Schema.Array(Schema.NullOr(Schema.Union([ |
| 923 | NodesCommit, |
| 924 | PullRequestCommitStatsNodesNodeOther |
| 925 | ]))) |
| 926 | }) |
| 927 | }) |
| 928 | export declare namespace PullRequestCommitStats { |
| 929 | export type Variables = typeof PullRequestCommitStats.variables.Type |
| 930 | export type Result = typeof PullRequestCommitStats.result.Type |
| 931 | } |
| 932 | |
| 933 | /** A repository pull request. */ |
| 934 | export const NodesPullRequest = Schema.Struct({ |
| 935 | /** Identifies the pull request number. */ |
| 936 | number: Shared.Int, |
| 937 | /** Identifies the oid of the head ref associated with the pull request, even if the ref has been deleted. */ |
| 938 | headRefOid: Shared.GitObjectID, |
| 939 | /** The head and base repositories are different. */ |
| 940 | isCrossRepository: Schema.Boolean, |
| 941 | /** The owner of the repository associated with this pull request's head Ref. */ |
| 942 | headRepositoryOwner: Schema.NullOr(RepositoryOwner) |
| 943 | }) |
| 944 | export interface NodesPullRequest extends Schema.Struct.Type<typeof NodesPullRequest.fields> {} |
| 945 | |
| 946 | /** The connection type for PullRequest. */ |
| 947 | export const PullRequestConnection = Schema.Struct({ |
| 948 | /** Information to aid in pagination. */ |
| 949 | pageInfo: ContextsPageInfoPageInfo, |
| 950 | /** A list of nodes. */ |
| 951 | nodes: Schema.NullOr(Schema.Array(Schema.NullOr(NodesPullRequest))) |
| 952 | }) |
| 953 | export interface PullRequestConnection extends Schema.Struct.Type<typeof PullRequestConnection.fields> {} |
| 954 | |
| 955 | /** A repository contains the content for a project. */ |
| 956 | export const PullRequestHeadsRepositoryRepository = Schema.Struct({ |
| 957 | /** A list of pull requests that have been opened in the repository. */ |
| 958 | pullRequests: PullRequestConnection |
| 959 | }) |
| 960 | export interface PullRequestHeadsRepositoryRepository extends Schema.Struct.Type<typeof PullRequestHeadsRepositoryRepository.fields> {} |
| 961 | |
| 962 | /** `query PullRequestHeads` */ |
| 963 | export const PullRequestHeads = GraphQL.query("PullRequestHeads", { |
| 964 | document: { |
| 965 | variables: [ |
| 966 | { name: "owner", body: "String!" }, |
| 967 | { name: "name", body: "String!" }, |
| 968 | { name: "head", body: "String!" }, |
| 969 | { name: "after", body: "String" } |
| 970 | ], |
| 971 | selections: [ |
| 972 | { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){pullRequests(first:100 after:$", "after", " states:[OPEN]headRefName:$", "head", "){pageInfo{hasNextPage endCursor}nodes{number headRefOid isCrossRepository headRepositoryOwner{__typename login}}}}"] } |
| 973 | ], |
| 974 | fragments: [] |
| 975 | }, |
| 976 | variables: { |
| 977 | owner: Schema.String, |
| 978 | name: Schema.String, |
| 979 | head: Schema.String, |
| 980 | after: Schema.optional(Schema.NullOr(Schema.String)) |
| 981 | }, |
| 982 | result: Schema.Struct({ |
| 983 | /** Lookup a given repository by the owner and repository name. */ |
| 984 | repository: Schema.NullOr(PullRequestHeadsRepositoryRepository) |
| 985 | }) |
| 986 | }) |
| 987 | export declare namespace PullRequestHeads { |
| 988 | export type Variables = typeof PullRequestHeads.variables.Type |
| 989 | export type Result = typeof PullRequestHeads.result.Type |
| 990 | } |
| 991 | |
| 992 | /** A repository pull request. */ |
| 993 | export const PullRequestNodeIdRepositoryPullRequestPullRequest = Schema.Struct({ |
| 994 | /** The Node ID of the PullRequest object */ |
| 995 | id: Shared.ID |
| 996 | }) |
| 997 | export interface PullRequestNodeIdRepositoryPullRequestPullRequest extends Schema.Struct.Type<typeof PullRequestNodeIdRepositoryPullRequestPullRequest.fields> {} |
| 998 | |
| 999 | /** A repository contains the content for a project. */ |
| 1000 | export const PullRequestNodeIdRepositoryRepository = Schema.Struct({ |
| 1001 | /** Returns a single pull request from the current repository by number. */ |
| 1002 | pullRequest: Schema.NullOr(PullRequestNodeIdRepositoryPullRequestPullRequest) |
| 1003 | }) |
| 1004 | export interface PullRequestNodeIdRepositoryRepository extends Schema.Struct.Type<typeof PullRequestNodeIdRepositoryRepository.fields> {} |
| 1005 | |
| 1006 | /** `query PullRequestNodeId` */ |
| 1007 | export const PullRequestNodeId = GraphQL.query("PullRequestNodeId", { |
| 1008 | document: { |
| 1009 | variables: [ |
| 1010 | { name: "owner", body: "String!" }, |
| 1011 | { name: "name", body: "String!" }, |
| 1012 | { name: "number", body: "Int!" } |
| 1013 | ], |
| 1014 | selections: [ |
| 1015 | { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){pullRequest(number:$", "number", "){id}}"] } |
| 1016 | ], |
| 1017 | fragments: [] |
| 1018 | }, |
| 1019 | variables: { |
| 1020 | owner: Schema.String, |
| 1021 | name: Schema.String, |
| 1022 | number: Shared.Int |
| 1023 | }, |
| 1024 | result: Schema.Struct({ |
| 1025 | /** Lookup a given repository by the owner and repository name. */ |
| 1026 | repository: Schema.NullOr(PullRequestNodeIdRepositoryRepository) |
| 1027 | }) |
| 1028 | }) |
| 1029 | export declare namespace PullRequestNodeId { |
| 1030 | export type Variables = typeof PullRequestNodeId.variables.Type |
| 1031 | export type Result = typeof PullRequestNodeId.result.Type |
| 1032 | } |
| 1033 | |
| 1034 | /** Represents a comment on an Issue. */ |
| 1035 | export const NodeIssueComment = Schema.Struct({ |
| 1036 | __typename: Schema.Literal("IssueComment"), |
| 1037 | /** The Node ID of the IssueComment object */ |
| 1038 | id: Shared.ID, |
| 1039 | /** |
| 1040 | * Returns the pull request associated with the comment, if this comment was made on a |
| 1041 | * pull request. |
| 1042 | */ |
| 1043 | pullRequest: Schema.NullOr(PullRequestNodeIdRepositoryPullRequestPullRequest) |
| 1044 | }) |
| 1045 | export interface NodeIssueComment extends Schema.Struct.Type<typeof NodeIssueComment.fields> {} |
| 1046 | |
| 1047 | /** A review comment associated with a given repository pull request. */ |
| 1048 | export const PullRequestReviewComment = Schema.Struct({ |
| 1049 | __typename: Schema.Literal("PullRequestReviewComment"), |
| 1050 | /** The Node ID of the PullRequestReviewComment object */ |
| 1051 | id: Shared.ID, |
| 1052 | /** The pull request associated with this review comment. */ |
| 1053 | reviewCommentPullRequest: PullRequestNodeIdRepositoryPullRequestPullRequest |
| 1054 | }) |
| 1055 | export interface PullRequestReviewComment extends Schema.Struct.Type<typeof PullRequestReviewComment.fields> {} |
| 1056 | |
| 1057 | /** A review object for a given pull request. */ |
| 1058 | export const NodePullRequestReview = Schema.Struct({ |
| 1059 | __typename: Schema.Literal("PullRequestReview"), |
| 1060 | /** The Node ID of the PullRequestReview object */ |
| 1061 | id: Shared.ID, |
| 1062 | /** Identifies the pull request associated with this pull request review. */ |
| 1063 | reviewPullRequest: PullRequestNodeIdRepositoryPullRequestPullRequest |
| 1064 | }) |
| 1065 | export interface NodePullRequestReview extends Schema.Struct.Type<typeof NodePullRequestReview.fields> {} |
| 1066 | |
| 1067 | /** An object with an ID. */ |
| 1068 | export const PullRequestSubjectNodeNodeOther = Schema.Struct({ |
| 1069 | __typename: GraphQL.otherTypename<Shared.Typename.Node>()(["IssueComment", "PullRequestReviewComment", "PullRequestReview"]), |
| 1070 | /** ID of the object. */ |
| 1071 | id: Shared.ID |
| 1072 | }) |
| 1073 | export interface PullRequestSubjectNodeNodeOther extends Schema.Struct.Type<typeof PullRequestSubjectNodeNodeOther.fields> {} |
| 1074 | |
| 1075 | /** `query PullRequestSubject` */ |
| 1076 | export const PullRequestSubject = GraphQL.query("PullRequestSubject", { |
| 1077 | document: { |
| 1078 | variables: [ |
| 1079 | { name: "owner", body: "String!" }, |
| 1080 | { name: "name", body: "String!" }, |
| 1081 | { name: "number", body: "Int!" }, |
| 1082 | { name: "subjectId", body: "ID!" } |
| 1083 | ], |
| 1084 | selections: [ |
| 1085 | { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){pullRequest(number:$", "number", "){id}}"] }, |
| 1086 | { name: "node", body: ["(id:$", "subjectId", "){__typename id...on IssueComment{pullRequest{id}}...on PullRequestReviewComment{reviewCommentPullRequest:pullRequest{id}}...on PullRequestReview{reviewPullRequest:pullRequest{id}}}"] } |
| 1087 | ], |
| 1088 | fragments: [] |
| 1089 | }, |
| 1090 | variables: { |
| 1091 | owner: Schema.String, |
| 1092 | name: Schema.String, |
| 1093 | number: Shared.Int, |
| 1094 | subjectId: Shared.ID |
| 1095 | }, |
| 1096 | result: Schema.Struct({ |
| 1097 | /** Lookup a given repository by the owner and repository name. */ |
| 1098 | repository: Schema.NullOr(PullRequestNodeIdRepositoryRepository), |
| 1099 | /** Fetches an object given its ID. */ |
| 1100 | node: Schema.NullOr(Schema.Union([ |
| 1101 | NodeIssueComment, |
| 1102 | PullRequestReviewComment, |
| 1103 | NodePullRequestReview, |
| 1104 | PullRequestSubjectNodeNodeOther |
| 1105 | ])) |
| 1106 | }) |
| 1107 | }) |
| 1108 | export declare namespace PullRequestSubject { |
| 1109 | export type Variables = typeof PullRequestSubject.variables.Type |
| 1110 | export type Result = typeof PullRequestSubject.result.Type |
| 1111 | } |
| 1112 | |
| 1113 | /** A repository contains the content for a project. */ |
| 1114 | export const ViewerPermissionsRepositoryPullRequestHeadRepositoryRepository = Schema.Struct({ |
| 1115 | /** The users permission level on the repository. Will return null if authenticated as an GitHub App. */ |
| 1116 | viewerPermission: Schema.NullOr(GraphQL.enumLiterals(Shared.RepositoryPermission.literals)) |
| 1117 | }) |
| 1118 | export interface ViewerPermissionsRepositoryPullRequestHeadRepositoryRepository extends Schema.Struct.Type<typeof ViewerPermissionsRepositoryPullRequestHeadRepositoryRepository.fields> {} |
| 1119 | |
| 1120 | /** A repository pull request. */ |
| 1121 | export const ViewerPermissionsRepositoryPullRequestPullRequest = Schema.Struct({ |
| 1122 | /** Check if the current viewer can update this object. */ |
| 1123 | viewerCanUpdate: Schema.Boolean, |
| 1124 | /** Did the viewer author this comment. */ |
| 1125 | viewerDidAuthor: Schema.Boolean, |
| 1126 | /** The repository associated with this pull request's head Ref. */ |
| 1127 | headRepository: Schema.NullOr(ViewerPermissionsRepositoryPullRequestHeadRepositoryRepository) |
| 1128 | }) |
| 1129 | export interface ViewerPermissionsRepositoryPullRequestPullRequest extends Schema.Struct.Type<typeof ViewerPermissionsRepositoryPullRequestPullRequest.fields> {} |
| 1130 | |
| 1131 | /** A repository contains the content for a project. */ |
| 1132 | export const ViewerPermissionsRepositoryRepository = Schema.Struct({ |
| 1133 | /** Whether or not PRs are merged with a merge commit on this repository. */ |
| 1134 | mergeCommitAllowed: Schema.Boolean, |
| 1135 | /** Whether or not squash-merging is enabled on this repository. */ |
| 1136 | squashMergeAllowed: Schema.Boolean, |
| 1137 | /** Whether or not rebase-merging is enabled on this repository. */ |
| 1138 | rebaseMergeAllowed: Schema.Boolean, |
| 1139 | /** Whether or not Auto-merge can be enabled on pull requests in this repository. */ |
| 1140 | autoMergeAllowed: Schema.Boolean, |
| 1141 | /** The users permission level on the repository. Will return null if authenticated as an GitHub App. */ |
| 1142 | viewerPermission: Schema.NullOr(GraphQL.enumLiterals(Shared.RepositoryPermission.literals)), |
| 1143 | /** Returns a single pull request from the current repository by number. */ |
| 1144 | pullRequest: Schema.NullOr(ViewerPermissionsRepositoryPullRequestPullRequest) |
| 1145 | }) |
| 1146 | export interface ViewerPermissionsRepositoryRepository extends Schema.Struct.Type<typeof ViewerPermissionsRepositoryRepository.fields> {} |
| 1147 | |
| 1148 | /** `query ViewerPermissions` */ |
| 1149 | export const ViewerPermissions = GraphQL.query("ViewerPermissions", { |
| 1150 | document: { |
| 1151 | variables: [ |
| 1152 | { name: "owner", body: "String!" }, |
| 1153 | { name: "name", body: "String!" }, |
| 1154 | { name: "number", body: "Int!" } |
| 1155 | ], |
| 1156 | selections: [ |
| 1157 | { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){mergeCommitAllowed squashMergeAllowed rebaseMergeAllowed autoMergeAllowed viewerPermission pullRequest(number:$", "number", "){viewerCanUpdate viewerDidAuthor headRepository{viewerPermission}}}"] } |
| 1158 | ], |
| 1159 | fragments: [] |
| 1160 | }, |
| 1161 | variables: { |
| 1162 | owner: Schema.String, |
| 1163 | name: Schema.String, |
| 1164 | number: Shared.Int |
| 1165 | }, |
| 1166 | result: Schema.Struct({ |
| 1167 | /** Lookup a given repository by the owner and repository name. */ |
| 1168 | repository: Schema.NullOr(ViewerPermissionsRepositoryRepository) |
| 1169 | }) |
| 1170 | }) |
| 1171 | export declare namespace ViewerPermissions { |
| 1172 | export type Variables = typeof ViewerPermissions.variables.Type |
| 1173 | export type Result = typeof ViewerPermissions.result.Type |
| 1174 | } |
| 1175 | |
| 1176 | /** Information about pagination in a connection. */ |
| 1177 | export const AssignableUsersPageInfoPageInfo = Schema.Struct({ |
| 1178 | /** When paginating forwards, are there more items? */ |
| 1179 | hasNextPage: Schema.Boolean |
| 1180 | }) |
| 1181 | export interface AssignableUsersPageInfoPageInfo extends Schema.Struct.Type<typeof AssignableUsersPageInfoPageInfo.fields> {} |
| 1182 | |
| 1183 | /** A user is an individual's account on GitHub that owns repositories and can make new content. */ |
| 1184 | export const AssignableUsersNodesUser = Schema.Struct({ |
| 1185 | /** The username used to login. */ |
| 1186 | login: Schema.String, |
| 1187 | /** The user's public profile name. */ |
| 1188 | name: Schema.NullOr(Schema.String), |
| 1189 | /** A URL pointing to the user's public avatar. */ |
| 1190 | avatarUrl: Shared.URI |
| 1191 | }) |
| 1192 | export interface AssignableUsersNodesUser extends Schema.Struct.Type<typeof AssignableUsersNodesUser.fields> {} |
| 1193 | |
| 1194 | /** A list of users. */ |
| 1195 | export const UserConnection = Schema.Struct({ |
| 1196 | /** Information to aid in pagination. */ |
| 1197 | pageInfo: AssignableUsersPageInfoPageInfo, |
| 1198 | /** A list of nodes. */ |
| 1199 | nodes: Schema.NullOr(Schema.Array(Schema.NullOr(AssignableUsersNodesUser))) |
| 1200 | }) |
| 1201 | export interface UserConnection extends Schema.Struct.Type<typeof UserConnection.fields> {} |
| 1202 | |
| 1203 | /** Represents an object which can take actions on GitHub. Typically a User or Bot. */ |
| 1204 | export const Actor = Schema.Struct({ |
| 1205 | __typename: GraphQL.otherTypename<Shared.Typename.Actor>()([]), |
| 1206 | /** The username of the actor. */ |
| 1207 | login: Schema.String |
| 1208 | }) |
| 1209 | export interface Actor extends Schema.Struct.Type<typeof Actor.fields> {} |
| 1210 | |
| 1211 | /** A request for a user to review a pull request. */ |
| 1212 | export const ReviewerCandidatesRepositoryPullRequestReviewRequestsNodesReviewRequest = Schema.Struct({ |
| 1213 | /** The reviewer that is requested. */ |
| 1214 | requestedReviewer: Schema.NullOr(Schema.Union([ |
| 1215 | MergedByUser, |
| 1216 | Team, |
| 1217 | NodesBot, |
| 1218 | RequestedReviewerOther |
| 1219 | ])) |
| 1220 | }) |
| 1221 | export interface ReviewerCandidatesRepositoryPullRequestReviewRequestsNodesReviewRequest extends Schema.Struct.Type<typeof ReviewerCandidatesRepositoryPullRequestReviewRequestsNodesReviewRequest.fields> {} |
| 1222 | |
| 1223 | /** The connection type for ReviewRequest. */ |
| 1224 | export const ReviewerCandidatesRepositoryPullRequestReviewRequestsReviewRequestConnection = Schema.Struct({ |
| 1225 | /** A list of nodes. */ |
| 1226 | nodes: Schema.NullOr(Schema.Array(Schema.NullOr(ReviewerCandidatesRepositoryPullRequestReviewRequestsNodesReviewRequest))) |
| 1227 | }) |
| 1228 | export interface ReviewerCandidatesRepositoryPullRequestReviewRequestsReviewRequestConnection extends Schema.Struct.Type<typeof ReviewerCandidatesRepositoryPullRequestReviewRequestsReviewRequestConnection.fields> {} |
| 1229 | |
| 1230 | /** A repository pull request. */ |
| 1231 | export const ReviewerCandidatesRepositoryPullRequestPullRequest = Schema.Struct({ |
| 1232 | /** The actor who authored the comment. */ |
| 1233 | author: Schema.NullOr(Actor), |
| 1234 | /** A list of review requests associated with the pull request. */ |
| 1235 | reviewRequests: Schema.NullOr(ReviewerCandidatesRepositoryPullRequestReviewRequestsReviewRequestConnection) |
| 1236 | }) |
| 1237 | export interface ReviewerCandidatesRepositoryPullRequestPullRequest extends Schema.Struct.Type<typeof ReviewerCandidatesRepositoryPullRequestPullRequest.fields> {} |
| 1238 | |
| 1239 | /** A repository contains the content for a project. */ |
| 1240 | export const ReviewerCandidatesRepositoryRepository = Schema.Struct({ |
| 1241 | /** A list of users that can be assigned to issues in this repository. */ |
| 1242 | assignableUsers: UserConnection, |
| 1243 | /** Returns a single pull request from the current repository by number. */ |
| 1244 | pullRequest: Schema.NullOr(ReviewerCandidatesRepositoryPullRequestPullRequest) |
| 1245 | }) |
| 1246 | export interface ReviewerCandidatesRepositoryRepository extends Schema.Struct.Type<typeof ReviewerCandidatesRepositoryRepository.fields> {} |
| 1247 | |
| 1248 | /** `query ReviewerCandidates` */ |
| 1249 | export const ReviewerCandidates = GraphQL.query("ReviewerCandidates", { |
| 1250 | document: { |
| 1251 | variables: [ |
| 1252 | { name: "owner", body: "String!" }, |
| 1253 | { name: "name", body: "String!" }, |
| 1254 | { name: "number", body: "Int!" }, |
| 1255 | { name: "query", body: "String" } |
| 1256 | ], |
| 1257 | selections: [ |
| 1258 | { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){assignableUsers(first:100 query:$", "query", "){pageInfo{hasNextPage}nodes{login name avatarUrl}}pullRequest(number:$", "number", "){author{__typename login}reviewRequests(first:100){nodes{requestedReviewer{__typename...on User{login name avatarUrl}...on Team{slug combinedSlug teamName:name teamAvatarUrl:avatarUrl}...on Bot{login avatarUrl}}}}}}"] } |
| 1259 | ], |
| 1260 | fragments: [] |
| 1261 | }, |
| 1262 | variables: { |
| 1263 | owner: Schema.String, |
| 1264 | name: Schema.String, |
| 1265 | number: Shared.Int, |
| 1266 | query: Schema.optional(Schema.NullOr(Schema.String)) |
| 1267 | }, |
| 1268 | result: Schema.Struct({ |
| 1269 | /** Lookup a given repository by the owner and repository name. */ |
| 1270 | repository: Schema.NullOr(ReviewerCandidatesRepositoryRepository) |
| 1271 | }) |
| 1272 | }) |
| 1273 | export declare namespace ReviewerCandidates { |
| 1274 | export type Variables = typeof ReviewerCandidates.variables.Type |
| 1275 | export type Result = typeof ReviewerCandidates.result.Type |
| 1276 | } |
| 1277 | |
| 1278 | /** The connection type for Label. */ |
| 1279 | export const LabelCandidatesRepositoryLabelsLabelConnection = Schema.Struct({ |
| 1280 | /** Information to aid in pagination. */ |
| 1281 | pageInfo: AssignableUsersPageInfoPageInfo, |
| 1282 | /** A list of nodes. */ |
| 1283 | nodes: Schema.NullOr(Schema.Array(Schema.NullOr(PullRequestCoreRepositoryPullRequestLabelsNodesLabel))) |
| 1284 | }) |
| 1285 | export interface LabelCandidatesRepositoryLabelsLabelConnection extends Schema.Struct.Type<typeof LabelCandidatesRepositoryLabelsLabelConnection.fields> {} |
| 1286 | |
| 1287 | /** A label for categorizing Issues, Pull Requests, Milestones, or Discussions with a given Repository. */ |
| 1288 | export const LabelCandidatesRepositoryPullRequestLabelsNodesLabel = Schema.Struct({ |
| 1289 | /** Identifies the label name. */ |
| 1290 | name: Schema.String |
| 1291 | }) |
| 1292 | export interface LabelCandidatesRepositoryPullRequestLabelsNodesLabel extends Schema.Struct.Type<typeof LabelCandidatesRepositoryPullRequestLabelsNodesLabel.fields> {} |
| 1293 | |
| 1294 | /** The connection type for Label. */ |
| 1295 | export const LabelCandidatesRepositoryPullRequestLabelsLabelConnection = Schema.Struct({ |
| 1296 | /** A list of nodes. */ |
| 1297 | nodes: Schema.NullOr(Schema.Array(Schema.NullOr(LabelCandidatesRepositoryPullRequestLabelsNodesLabel))) |
| 1298 | }) |
| 1299 | export interface LabelCandidatesRepositoryPullRequestLabelsLabelConnection extends Schema.Struct.Type<typeof LabelCandidatesRepositoryPullRequestLabelsLabelConnection.fields> {} |
| 1300 | |
| 1301 | /** A repository pull request. */ |
| 1302 | export const LabelCandidatesRepositoryPullRequestPullRequest = Schema.Struct({ |
| 1303 | /** A list of labels associated with the object. */ |
| 1304 | labels: Schema.NullOr(LabelCandidatesRepositoryPullRequestLabelsLabelConnection) |
| 1305 | }) |
| 1306 | export interface LabelCandidatesRepositoryPullRequestPullRequest extends Schema.Struct.Type<typeof LabelCandidatesRepositoryPullRequestPullRequest.fields> {} |
| 1307 | |
| 1308 | /** A repository contains the content for a project. */ |
| 1309 | export const LabelCandidatesRepositoryRepository = Schema.Struct({ |
| 1310 | /** A list of labels associated with the repository. */ |
| 1311 | labels: Schema.NullOr(LabelCandidatesRepositoryLabelsLabelConnection), |
| 1312 | /** Returns a single pull request from the current repository by number. */ |
| 1313 | pullRequest: Schema.NullOr(LabelCandidatesRepositoryPullRequestPullRequest) |
| 1314 | }) |
| 1315 | export interface LabelCandidatesRepositoryRepository extends Schema.Struct.Type<typeof LabelCandidatesRepositoryRepository.fields> {} |
| 1316 | |
| 1317 | /** `query LabelCandidates` */ |
| 1318 | export const LabelCandidates = GraphQL.query("LabelCandidates", { |
| 1319 | document: { |
| 1320 | variables: [ |
| 1321 | { name: "owner", body: "String!" }, |
| 1322 | { name: "name", body: "String!" }, |
| 1323 | { name: "number", body: "Int!" } |
| 1324 | ], |
| 1325 | selections: [ |
| 1326 | { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){labels(first:100 orderBy:{field:NAME direction:ASC}){pageInfo{hasNextPage}nodes{name color description}}pullRequest(number:$", "number", "){labels(first:100){nodes{name}}}}"] } |
| 1327 | ], |
| 1328 | fragments: [] |
| 1329 | }, |
| 1330 | variables: { |
| 1331 | owner: Schema.String, |
| 1332 | name: Schema.String, |
| 1333 | number: Shared.Int |
| 1334 | }, |
| 1335 | result: Schema.Struct({ |
| 1336 | /** Lookup a given repository by the owner and repository name. */ |
| 1337 | repository: Schema.NullOr(LabelCandidatesRepositoryRepository) |
| 1338 | }) |
| 1339 | }) |
| 1340 | export declare namespace LabelCandidates { |
| 1341 | export type Variables = typeof LabelCandidates.variables.Type |
| 1342 | export type Result = typeof LabelCandidates.result.Type |
| 1343 | } |
| 1344 | |
| 1345 | /** A label for categorizing Issues, Pull Requests, Milestones, or Discussions with a given Repository. */ |
| 1346 | export const RepositoryLabelsNodesLabel = Schema.Struct({ |
| 1347 | /** Identifies the label name. */ |
| 1348 | name: Schema.String, |
| 1349 | /** Identifies the label color. */ |
| 1350 | color: Schema.String |
| 1351 | }) |
| 1352 | export interface RepositoryLabelsNodesLabel extends Schema.Struct.Type<typeof RepositoryLabelsNodesLabel.fields> {} |
| 1353 | |
| 1354 | /** The connection type for Label. */ |
| 1355 | export const RepositoryLabelsRepositoryLabelsLabelConnection = Schema.Struct({ |
| 1356 | /** Information to aid in pagination. */ |
| 1357 | pageInfo: AssignableUsersPageInfoPageInfo, |
| 1358 | /** A list of nodes. */ |
| 1359 | nodes: Schema.NullOr(Schema.Array(Schema.NullOr(RepositoryLabelsNodesLabel))) |
| 1360 | }) |
| 1361 | export interface RepositoryLabelsRepositoryLabelsLabelConnection extends Schema.Struct.Type<typeof RepositoryLabelsRepositoryLabelsLabelConnection.fields> {} |
| 1362 | |
| 1363 | /** A repository contains the content for a project. */ |
| 1364 | export const RepositoryLabelsRepositoryRepository = Schema.Struct({ |
| 1365 | /** A list of labels associated with the repository. */ |
| 1366 | labels: Schema.NullOr(RepositoryLabelsRepositoryLabelsLabelConnection) |
| 1367 | }) |
| 1368 | export interface RepositoryLabelsRepositoryRepository extends Schema.Struct.Type<typeof RepositoryLabelsRepositoryRepository.fields> {} |
| 1369 | |
| 1370 | /** `query RepositoryLabels` */ |
| 1371 | export const RepositoryLabels = GraphQL.query("RepositoryLabels", { |
| 1372 | document: { |
| 1373 | variables: [ |
| 1374 | { name: "owner", body: "String!" }, |
| 1375 | { name: "name", body: "String!" }, |
| 1376 | { name: "query", body: "String" } |
| 1377 | ], |
| 1378 | selections: [ |
| 1379 | { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){labels(first:100 query:$", "query", " orderBy:{field:NAME direction:ASC}){pageInfo{hasNextPage}nodes{name color}}}"] } |
| 1380 | ], |
| 1381 | fragments: [] |
| 1382 | }, |
| 1383 | variables: { |
| 1384 | owner: Schema.String, |
| 1385 | name: Schema.String, |
| 1386 | query: Schema.optional(Schema.NullOr(Schema.String)) |
| 1387 | }, |
| 1388 | result: Schema.Struct({ |
| 1389 | /** Lookup a given repository by the owner and repository name. */ |
| 1390 | repository: Schema.NullOr(RepositoryLabelsRepositoryRepository) |
| 1391 | }) |
| 1392 | }) |
| 1393 | export declare namespace RepositoryLabels { |
| 1394 | export type Variables = typeof RepositoryLabels.variables.Type |
| 1395 | export type Result = typeof RepositoryLabels.result.Type |
| 1396 | } |
| 1397 | |
| 1398 | /** The results of a search. */ |
| 1399 | export const SearchResultItemOther = Schema.Struct({ |
| 1400 | __typename: GraphQL.otherTypename<Shared.Typename.SearchResultItem>()(["Issue", "PullRequest"]) |
| 1401 | }) |
| 1402 | export interface SearchResultItemOther extends Schema.Struct.Type<typeof SearchResultItemOther.fields> {} |
| 1403 | |
| 1404 | /** |
| 1405 | * A list of results that matched against a search query. Regardless of the number |
| 1406 | * of matches, a maximum of 1,000 results will be available across all types, |
| 1407 | * potentially split across many pages. |
| 1408 | */ |
| 1409 | export const SearchResultItemConnection = Schema.Struct({ |
| 1410 | /** Information to aid in pagination. */ |
| 1411 | pageInfo: AssignableUsersPageInfoPageInfo, |
| 1412 | /** A list of nodes. */ |
| 1413 | nodes: Schema.NullOr(Schema.Array(Schema.NullOr(Schema.Union([ |
| 1414 | Issue, |
| 1415 | ReferenceCandidatePullRequest, |
| 1416 | SearchResultItemOther |
| 1417 | ])))) |
| 1418 | }) |
| 1419 | export interface SearchResultItemConnection extends Schema.Struct.Type<typeof SearchResultItemConnection.fields> {} |
| 1420 | |
| 1421 | /** A repository contains the content for a project. */ |
| 1422 | export const RepositoryReferencesRepositoryRepository = Schema.Struct({ |
| 1423 | /** Returns a single issue-like object from the current repository by number. */ |
| 1424 | issueOrPullRequest: Schema.NullOr(ReferenceCandidate) |
| 1425 | }) |
| 1426 | export interface RepositoryReferencesRepositoryRepository extends Schema.Struct.Type<typeof RepositoryReferencesRepositoryRepository.fields> {} |
| 1427 | |
| 1428 | /** `query RepositoryReferences` */ |
| 1429 | export const RepositoryReferences = GraphQL.query("RepositoryReferences", { |
| 1430 | document: { |
| 1431 | variables: [ |
| 1432 | { name: "owner", body: "String!" }, |
| 1433 | { name: "name", body: "String!" }, |
| 1434 | { name: "q", body: "String!" }, |
| 1435 | { name: "number", body: "Int!" }, |
| 1436 | { name: "exact", body: "Boolean!" } |
| 1437 | ], |
| 1438 | selections: [ |
| 1439 | { name: "search", body: ["(query:$", "q", " type:ISSUE first:20){pageInfo{hasNextPage}nodes{__typename...ReferenceCandidate}}"] }, |
| 1440 | { name: "repository", body: ["(owner:$", "owner", " name:$", "name", ")@include(if:$", "exact", "){issueOrPullRequest(number:$", "number", "){__typename...ReferenceCandidate}}"] } |
| 1441 | ], |
| 1442 | fragments: [ |
| 1443 | { name: "ReferenceCandidate", body: ["on IssueOrPullRequest{__typename...on Issue{number title issueState:state}...on PullRequest{number title pullRequestState:state}}"] } |
| 1444 | ] |
| 1445 | }, |
| 1446 | variables: { |
| 1447 | owner: Schema.String, |
| 1448 | name: Schema.String, |
| 1449 | q: Schema.String, |
| 1450 | number: Shared.Int, |
| 1451 | exact: Schema.Boolean |
| 1452 | }, |
| 1453 | result: Schema.Struct({ |
| 1454 | /** Perform a search across resources, returning a maximum of 1,000 results. */ |
| 1455 | search: SearchResultItemConnection, |
| 1456 | /** Lookup a given repository by the owner and repository name. */ |
| 1457 | repository: Schema.optionalKey(Schema.NullOr(RepositoryReferencesRepositoryRepository)) |
| 1458 | }) |
| 1459 | }) |
| 1460 | export declare namespace RepositoryReferences { |
| 1461 | export type Variables = typeof RepositoryReferences.variables.Type |
| 1462 | export type Result = typeof RepositoryReferences.result.Type |
| 1463 | } |
| 1464 | |
| 1465 | /** A repository contains the content for a project. */ |
| 1466 | export const RepositoryAuthorsRepositoryRepository = Schema.Struct({ |
| 1467 | /** A list of Users that can be mentioned in the context of the repository. */ |
| 1468 | mentionableUsers: UserConnection |
| 1469 | }) |
| 1470 | export interface RepositoryAuthorsRepositoryRepository extends Schema.Struct.Type<typeof RepositoryAuthorsRepositoryRepository.fields> {} |
| 1471 | |
| 1472 | /** `query RepositoryAuthors` */ |
| 1473 | export const RepositoryAuthors = GraphQL.query("RepositoryAuthors", { |
| 1474 | document: { |
| 1475 | variables: [ |
| 1476 | { name: "owner", body: "String!" }, |
| 1477 | { name: "name", body: "String!" }, |
| 1478 | { name: "query", body: "String" } |
| 1479 | ], |
| 1480 | selections: [ |
| 1481 | { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){mentionableUsers(first:50 query:$", "query", "){pageInfo{hasNextPage}nodes{login name avatarUrl}}}"] } |
| 1482 | ], |
| 1483 | fragments: [] |
| 1484 | }, |
| 1485 | variables: { |
| 1486 | owner: Schema.String, |
| 1487 | name: Schema.String, |
| 1488 | query: Schema.optional(Schema.NullOr(Schema.String)) |
| 1489 | }, |
| 1490 | result: Schema.Struct({ |
| 1491 | /** Lookup a given repository by the owner and repository name. */ |
| 1492 | repository: Schema.NullOr(RepositoryAuthorsRepositoryRepository) |
| 1493 | }) |
| 1494 | }) |
| 1495 | export declare namespace RepositoryAuthors { |
| 1496 | export type Variables = typeof RepositoryAuthors.variables.Type |
| 1497 | export type Result = typeof RepositoryAuthors.result.Type |
| 1498 | } |
| 1499 | |
| 1500 | /** A file changed in a pull request. */ |
| 1501 | export const PullRequestFilesViewedRepositoryPullRequestFilesNodesPullRequestChangedFile = Schema.Struct({ |
| 1502 | /** The path of the file. */ |
| 1503 | path: Schema.String, |
| 1504 | /** The state of the file for the viewer. */ |
| 1505 | viewerViewedState: GraphQL.enumLiterals(Shared.FileViewedState.literals) |
| 1506 | }) |
| 1507 | export interface PullRequestFilesViewedRepositoryPullRequestFilesNodesPullRequestChangedFile extends Schema.Struct.Type<typeof PullRequestFilesViewedRepositoryPullRequestFilesNodesPullRequestChangedFile.fields> {} |
| 1508 | |
| 1509 | /** The connection type for PullRequestChangedFile. */ |
| 1510 | export const PullRequestFilesViewedRepositoryPullRequestFilesPullRequestChangedFileConnection = Schema.Struct({ |
| 1511 | /** Information to aid in pagination. */ |
| 1512 | pageInfo: ContextsPageInfoPageInfo, |
| 1513 | /** A list of nodes. */ |
| 1514 | nodes: Schema.NullOr(Schema.Array(Schema.NullOr(PullRequestFilesViewedRepositoryPullRequestFilesNodesPullRequestChangedFile))) |
| 1515 | }) |
| 1516 | export interface PullRequestFilesViewedRepositoryPullRequestFilesPullRequestChangedFileConnection extends Schema.Struct.Type<typeof PullRequestFilesViewedRepositoryPullRequestFilesPullRequestChangedFileConnection.fields> {} |
| 1517 | |
| 1518 | /** A repository pull request. */ |
| 1519 | export const PullRequestFilesViewedRepositoryPullRequestPullRequest = Schema.Struct({ |
| 1520 | /** Lists the files changed within this pull request. */ |
| 1521 | files: Schema.NullOr(PullRequestFilesViewedRepositoryPullRequestFilesPullRequestChangedFileConnection) |
| 1522 | }) |
| 1523 | export interface PullRequestFilesViewedRepositoryPullRequestPullRequest extends Schema.Struct.Type<typeof PullRequestFilesViewedRepositoryPullRequestPullRequest.fields> {} |
| 1524 | |
| 1525 | /** A repository contains the content for a project. */ |
| 1526 | export const PullRequestFilesViewedRepositoryRepository = Schema.Struct({ |
| 1527 | /** Returns a single pull request from the current repository by number. */ |
| 1528 | pullRequest: Schema.NullOr(PullRequestFilesViewedRepositoryPullRequestPullRequest) |
| 1529 | }) |
| 1530 | export interface PullRequestFilesViewedRepositoryRepository extends Schema.Struct.Type<typeof PullRequestFilesViewedRepositoryRepository.fields> {} |
| 1531 | |
| 1532 | /** `query PullRequestFilesViewed` */ |
| 1533 | export const PullRequestFilesViewed = GraphQL.query("PullRequestFilesViewed", { |
| 1534 | document: { |
| 1535 | variables: [ |
| 1536 | { name: "owner", body: "String!" }, |
| 1537 | { name: "name", body: "String!" }, |
| 1538 | { name: "number", body: "Int!" }, |
| 1539 | { name: "after", body: "String" } |
| 1540 | ], |
| 1541 | selections: [ |
| 1542 | { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){pullRequest(number:$", "number", "){files(first:100 after:$", "after", "){pageInfo{hasNextPage endCursor}nodes{path viewerViewedState}}}}"] } |
| 1543 | ], |
| 1544 | fragments: [] |
| 1545 | }, |
| 1546 | variables: { |
| 1547 | owner: Schema.String, |
| 1548 | name: Schema.String, |
| 1549 | number: Shared.Int, |
| 1550 | after: Schema.optional(Schema.NullOr(Schema.String)) |
| 1551 | }, |
| 1552 | result: Schema.Struct({ |
| 1553 | /** Lookup a given repository by the owner and repository name. */ |
| 1554 | repository: Schema.NullOr(PullRequestFilesViewedRepositoryRepository) |
| 1555 | }) |
| 1556 | }) |
| 1557 | export declare namespace PullRequestFilesViewed { |
| 1558 | export type Variables = typeof PullRequestFilesViewed.variables.Type |
| 1559 | export type Result = typeof PullRequestFilesViewed.result.Type |
| 1560 | } |
| 1561 | |
| 1562 | /** A file changed in a pull request. */ |
| 1563 | export const PullRequestFileStatsRepositoryPullRequestFilesNodesPullRequestChangedFile = Schema.Struct({ |
| 1564 | /** The path of the file. */ |
| 1565 | path: Schema.String, |
| 1566 | /** The number of additions to the file. */ |
| 1567 | additions: Shared.Int, |
| 1568 | /** The number of deletions to the file. */ |
| 1569 | deletions: Shared.Int |
| 1570 | }) |
| 1571 | export interface PullRequestFileStatsRepositoryPullRequestFilesNodesPullRequestChangedFile extends Schema.Struct.Type<typeof PullRequestFileStatsRepositoryPullRequestFilesNodesPullRequestChangedFile.fields> {} |
| 1572 | |
| 1573 | /** The connection type for PullRequestChangedFile. */ |
| 1574 | export const PullRequestFileStatsRepositoryPullRequestFilesPullRequestChangedFileConnection = Schema.Struct({ |
| 1575 | /** Information to aid in pagination. */ |
| 1576 | pageInfo: ContextsPageInfoPageInfo, |
| 1577 | /** A list of nodes. */ |
| 1578 | nodes: Schema.NullOr(Schema.Array(Schema.NullOr(PullRequestFileStatsRepositoryPullRequestFilesNodesPullRequestChangedFile))) |
| 1579 | }) |
| 1580 | export interface PullRequestFileStatsRepositoryPullRequestFilesPullRequestChangedFileConnection extends Schema.Struct.Type<typeof PullRequestFileStatsRepositoryPullRequestFilesPullRequestChangedFileConnection.fields> {} |
| 1581 | |
| 1582 | /** A repository pull request. */ |
| 1583 | export const PullRequestFileStatsRepositoryPullRequestPullRequest = Schema.Struct({ |
| 1584 | /** Lists the files changed within this pull request. */ |
| 1585 | files: Schema.NullOr(PullRequestFileStatsRepositoryPullRequestFilesPullRequestChangedFileConnection) |
| 1586 | }) |
| 1587 | export interface PullRequestFileStatsRepositoryPullRequestPullRequest extends Schema.Struct.Type<typeof PullRequestFileStatsRepositoryPullRequestPullRequest.fields> {} |
| 1588 | |
| 1589 | /** A repository contains the content for a project. */ |
| 1590 | export const PullRequestFileStatsRepositoryRepository = Schema.Struct({ |
| 1591 | /** Returns a single pull request from the current repository by number. */ |
| 1592 | pullRequest: Schema.NullOr(PullRequestFileStatsRepositoryPullRequestPullRequest) |
| 1593 | }) |
| 1594 | export interface PullRequestFileStatsRepositoryRepository extends Schema.Struct.Type<typeof PullRequestFileStatsRepositoryRepository.fields> {} |
| 1595 | |
| 1596 | /** `query PullRequestFileStats` */ |
| 1597 | export const PullRequestFileStats = GraphQL.query("PullRequestFileStats", { |
| 1598 | document: { |
| 1599 | variables: [ |
| 1600 | { name: "owner", body: "String!" }, |
| 1601 | { name: "name", body: "String!" }, |
| 1602 | { name: "number", body: "Int!" }, |
| 1603 | { name: "after", body: "String" } |
| 1604 | ], |
| 1605 | selections: [ |
| 1606 | { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){pullRequest(number:$", "number", "){files(first:100 after:$", "after", "){pageInfo{hasNextPage endCursor}nodes{path additions deletions}}}}"] } |
| 1607 | ], |
| 1608 | fragments: [] |
| 1609 | }, |
| 1610 | variables: { |
| 1611 | owner: Schema.String, |
| 1612 | name: Schema.String, |
| 1613 | number: Shared.Int, |
| 1614 | after: Schema.optional(Schema.NullOr(Schema.String)) |
| 1615 | }, |
| 1616 | result: Schema.Struct({ |
| 1617 | /** Lookup a given repository by the owner and repository name. */ |
| 1618 | repository: Schema.NullOr(PullRequestFileStatsRepositoryRepository) |
| 1619 | }) |
| 1620 | }) |
| 1621 | export declare namespace PullRequestFileStats { |
| 1622 | export type Variables = typeof PullRequestFileStats.variables.Type |
| 1623 | export type Result = typeof PullRequestFileStats.result.Type |
| 1624 | } |
| 1625 | |
| 1626 | /** A repository pull request. */ |
| 1627 | export const PullRequestMergeMessageRepositoryPullRequestPullRequest = Schema.Struct({ |
| 1628 | /** Indicates whether the pull request's base ref has a merge queue enabled. */ |
| 1629 | isMergeQueueEnabled: Schema.Boolean, |
| 1630 | /** Identifies the oid of the head ref associated with the pull request, even if the ref has been deleted. */ |
| 1631 | headRefOid: Shared.GitObjectID, |
| 1632 | /** The merge body text for the viewer and method. */ |
| 1633 | viewerMergeBodyText: Schema.String |
| 1634 | }) |
| 1635 | export interface PullRequestMergeMessageRepositoryPullRequestPullRequest extends Schema.Struct.Type<typeof PullRequestMergeMessageRepositoryPullRequestPullRequest.fields> {} |
| 1636 | |
| 1637 | /** A repository contains the content for a project. */ |
| 1638 | export const PullRequestMergeMessageRepositoryRepository = Schema.Struct({ |
| 1639 | /** Returns a single pull request from the current repository by number. */ |
| 1640 | pullRequest: Schema.NullOr(PullRequestMergeMessageRepositoryPullRequestPullRequest) |
| 1641 | }) |
| 1642 | export interface PullRequestMergeMessageRepositoryRepository extends Schema.Struct.Type<typeof PullRequestMergeMessageRepositoryRepository.fields> {} |
| 1643 | |
| 1644 | /** `query PullRequestMergeMessage` */ |
| 1645 | export const PullRequestMergeMessage = GraphQL.query("PullRequestMergeMessage", { |
| 1646 | document: { |
| 1647 | variables: [ |
| 1648 | { name: "owner", body: "String!" }, |
| 1649 | { name: "name", body: "String!" }, |
| 1650 | { name: "number", body: "Int!" }, |
| 1651 | { name: "method", body: "PullRequestMergeMethod!" } |
| 1652 | ], |
| 1653 | selections: [ |
| 1654 | { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){pullRequest(number:$", "number", "){isMergeQueueEnabled headRefOid viewerMergeBodyText(mergeType:$", "method", ")}}"] } |
| 1655 | ], |
| 1656 | fragments: [] |
| 1657 | }, |
| 1658 | variables: { |
| 1659 | owner: Schema.String, |
| 1660 | name: Schema.String, |
| 1661 | number: Shared.Int, |
| 1662 | method: Shared.PullRequestMergeMethod |
| 1663 | }, |
| 1664 | result: Schema.Struct({ |
| 1665 | /** Lookup a given repository by the owner and repository name. */ |
| 1666 | repository: Schema.NullOr(PullRequestMergeMessageRepositoryRepository) |
| 1667 | }) |
| 1668 | }) |
| 1669 | export declare namespace PullRequestMergeMessage { |
| 1670 | export type Variables = typeof PullRequestMergeMessage.variables.Type |
| 1671 | export type Result = typeof PullRequestMergeMessage.result.Type |
| 1672 | } |
| 1673 | |
| 1674 | /** A repository pull request. */ |
| 1675 | export const PullRequestActionStateRepositoryPullRequestPullRequest = Schema.Struct({ |
| 1676 | /** The Node ID of the PullRequest object */ |
| 1677 | id: Shared.ID, |
| 1678 | /** Identifies the oid of the head ref associated with the pull request, even if the ref has been deleted. */ |
| 1679 | headRefOid: Shared.GitObjectID, |
| 1680 | /** Indicates whether the pull request's base ref has a merge queue enabled. */ |
| 1681 | isMergeQueueEnabled: Schema.Boolean, |
| 1682 | /** Detailed information about the current pull request merge state status. */ |
| 1683 | mergeStateStatus: GraphQL.enumLiterals(Shared.MergeStateStatus.literals), |
| 1684 | /** Identifies the base Ref associated with the pull request. */ |
| 1685 | baseRef: Schema.NullOr(BaseRefRef) |
| 1686 | }) |
| 1687 | export interface PullRequestActionStateRepositoryPullRequestPullRequest extends Schema.Struct.Type<typeof PullRequestActionStateRepositoryPullRequestPullRequest.fields> {} |
| 1688 | |
| 1689 | /** A repository contains the content for a project. */ |
| 1690 | export const PullRequestActionStateRepositoryRepository = Schema.Struct({ |
| 1691 | /** Returns a single pull request from the current repository by number. */ |
| 1692 | pullRequest: Schema.NullOr(PullRequestActionStateRepositoryPullRequestPullRequest) |
| 1693 | }) |
| 1694 | export interface PullRequestActionStateRepositoryRepository extends Schema.Struct.Type<typeof PullRequestActionStateRepositoryRepository.fields> {} |
| 1695 | |
| 1696 | /** `query PullRequestActionState` */ |
| 1697 | export const PullRequestActionState = GraphQL.query("PullRequestActionState", { |
| 1698 | document: { |
| 1699 | variables: [ |
| 1700 | { name: "owner", body: "String!" }, |
| 1701 | { name: "name", body: "String!" }, |
| 1702 | { name: "number", body: "Int!" }, |
| 1703 | { name: "headRef", body: "String!" } |
| 1704 | ], |
| 1705 | selections: [ |
| 1706 | { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){pullRequest(number:$", "number", "){id headRefOid isMergeQueueEnabled mergeStateStatus baseRef{compare(headRef:$", "headRef", "){behindBy}}}}"] } |
| 1707 | ], |
| 1708 | fragments: [] |
| 1709 | }, |
| 1710 | variables: { |
| 1711 | owner: Schema.String, |
| 1712 | name: Schema.String, |
| 1713 | number: Shared.Int, |
| 1714 | headRef: Schema.String |
| 1715 | }, |
| 1716 | result: Schema.Struct({ |
| 1717 | /** Lookup a given repository by the owner and repository name. */ |
| 1718 | repository: Schema.NullOr(PullRequestActionStateRepositoryRepository) |
| 1719 | }) |
| 1720 | }) |
| 1721 | export declare namespace PullRequestActionState { |
| 1722 | export type Variables = typeof PullRequestActionState.variables.Type |
| 1723 | export type Result = typeof PullRequestActionState.result.Type |
| 1724 | } |
| 1725 | |
| 1726 | /** A repository contains the content for a project. */ |
| 1727 | export const PullRequestBranchToDeleteRepositoryPullRequestHeadRepositoryRepository = Schema.Struct({ |
| 1728 | /** The Node ID of the Repository object */ |
| 1729 | id: Shared.ID |
| 1730 | }) |
| 1731 | export interface PullRequestBranchToDeleteRepositoryPullRequestHeadRepositoryRepository extends Schema.Struct.Type<typeof PullRequestBranchToDeleteRepositoryPullRequestHeadRepositoryRepository.fields> {} |
| 1732 | |
| 1733 | /** A repository pull request. */ |
| 1734 | export const PullRequestBranchToDeleteRepositoryPullRequestPullRequest = Schema.Struct({ |
| 1735 | /** Identifies the state of the pull request. */ |
| 1736 | state: GraphQL.enumLiterals(Shared.PullRequestState.literals), |
| 1737 | /** Identifies the name of the head Ref associated with the pull request, even if the ref has been deleted. */ |
| 1738 | headRefName: Schema.String, |
| 1739 | /** Identifies the name of the base Ref associated with the pull request, even if the ref has been deleted. */ |
| 1740 | baseRefName: Schema.String, |
| 1741 | /** Identifies the oid of the head ref associated with the pull request, even if the ref has been deleted. */ |
| 1742 | headRefOid: Shared.GitObjectID, |
| 1743 | /** The repository associated with this pull request's head Ref. */ |
| 1744 | headRepository: Schema.NullOr(PullRequestBranchToDeleteRepositoryPullRequestHeadRepositoryRepository) |
| 1745 | }) |
| 1746 | export interface PullRequestBranchToDeleteRepositoryPullRequestPullRequest extends Schema.Struct.Type<typeof PullRequestBranchToDeleteRepositoryPullRequestPullRequest.fields> {} |
| 1747 | |
| 1748 | /** A repository contains the content for a project. */ |
| 1749 | export const PullRequestBranchToDeleteRepositoryRepository = Schema.Struct({ |
| 1750 | /** Returns a single pull request from the current repository by number. */ |
| 1751 | pullRequest: Schema.NullOr(PullRequestBranchToDeleteRepositoryPullRequestPullRequest) |
| 1752 | }) |
| 1753 | export interface PullRequestBranchToDeleteRepositoryRepository extends Schema.Struct.Type<typeof PullRequestBranchToDeleteRepositoryRepository.fields> {} |
| 1754 | |
| 1755 | /** `query PullRequestBranchToDelete` */ |
| 1756 | export const PullRequestBranchToDelete = GraphQL.query("PullRequestBranchToDelete", { |
| 1757 | document: { |
| 1758 | variables: [ |
| 1759 | { name: "owner", body: "String!" }, |
| 1760 | { name: "name", body: "String!" }, |
| 1761 | { name: "number", body: "Int!" } |
| 1762 | ], |
| 1763 | selections: [ |
| 1764 | { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){pullRequest(number:$", "number", "){state headRefName baseRefName headRefOid headRepository{id}}}"] } |
| 1765 | ], |
| 1766 | fragments: [] |
| 1767 | }, |
| 1768 | variables: { |
| 1769 | owner: Schema.String, |
| 1770 | name: Schema.String, |
| 1771 | number: Shared.Int |
| 1772 | }, |
| 1773 | result: Schema.Struct({ |
| 1774 | /** Lookup a given repository by the owner and repository name. */ |
| 1775 | repository: Schema.NullOr(PullRequestBranchToDeleteRepositoryRepository) |
| 1776 | }) |
| 1777 | }) |
| 1778 | export declare namespace PullRequestBranchToDelete { |
| 1779 | export type Variables = typeof PullRequestBranchToDelete.variables.Type |
| 1780 | export type Result = typeof PullRequestBranchToDelete.result.Type |
| 1781 | } |
| 1782 | |
| 1783 | /** Represents a Git reference. */ |
| 1784 | export const DefaultBranchRefRef = Schema.Struct({ |
| 1785 | /** The ref name. */ |
| 1786 | name: Schema.String |
| 1787 | }) |
| 1788 | export interface DefaultBranchRefRef extends Schema.Struct.Type<typeof DefaultBranchRefRef.fields> {} |
| 1789 | |
| 1790 | /** Represents a Git object. */ |
| 1791 | export const GitObject = Schema.Struct({ |
| 1792 | __typename: GraphQL.otherTypename<Shared.Typename.GitObject>()([]), |
| 1793 | /** The Git object ID */ |
| 1794 | oid: Shared.GitObjectID |
| 1795 | }) |
| 1796 | export interface GitObject extends Schema.Struct.Type<typeof GitObject.fields> {} |
| 1797 | |
| 1798 | /** Represents a Git reference. */ |
| 1799 | export const RefRef = Schema.Struct({ |
| 1800 | /** The object the ref points to. Returns null when object does not exist. */ |
| 1801 | target: Schema.NullOr(GitObject) |
| 1802 | }) |
| 1803 | export interface RefRef extends Schema.Struct.Type<typeof RefRef.fields> {} |
| 1804 | |
| 1805 | /** A repository contains the content for a project. */ |
| 1806 | export const NodeRepository = Schema.Struct({ |
| 1807 | __typename: Schema.Literal("Repository"), |
| 1808 | /** The Ref associated with the repository's default branch. */ |
| 1809 | defaultBranchRef: Schema.NullOr(DefaultBranchRefRef), |
| 1810 | /** Fetch a given ref from the repository */ |
| 1811 | ref: Schema.NullOr(RefRef) |
| 1812 | }) |
| 1813 | export interface NodeRepository extends Schema.Struct.Type<typeof NodeRepository.fields> {} |
| 1814 | |
| 1815 | /** An object with an ID. */ |
| 1816 | export const PullRequestSourceBranchNodeNodeOther = Schema.Struct({ |
| 1817 | __typename: GraphQL.otherTypename<Shared.Typename.Node>()(["Repository"]) |
| 1818 | }) |
| 1819 | export interface PullRequestSourceBranchNodeNodeOther extends Schema.Struct.Type<typeof PullRequestSourceBranchNodeNodeOther.fields> {} |
| 1820 | |
| 1821 | /** `query PullRequestSourceBranch` */ |
| 1822 | export const PullRequestSourceBranch = GraphQL.query("PullRequestSourceBranch", { |
| 1823 | document: { |
| 1824 | variables: [ |
| 1825 | { name: "repositoryId", body: "ID!" }, |
| 1826 | { name: "ref", body: "String!" } |
| 1827 | ], |
| 1828 | selections: [ |
| 1829 | { name: "node", body: ["(id:$", "repositoryId", "){__typename...on Repository{defaultBranchRef{name}ref(qualifiedName:$", "ref", "){target{__typename oid}}}}"] } |
| 1830 | ], |
| 1831 | fragments: [] |
| 1832 | }, |
| 1833 | variables: { |
| 1834 | repositoryId: Shared.ID, |
| 1835 | ref: Schema.String |
| 1836 | }, |
| 1837 | result: Schema.Struct({ |
| 1838 | /** Fetches an object given its ID. */ |
| 1839 | node: Schema.NullOr(Schema.Union([ |
| 1840 | NodeRepository, |
| 1841 | PullRequestSourceBranchNodeNodeOther |
| 1842 | ])) |
| 1843 | }) |
| 1844 | }) |
| 1845 | export declare namespace PullRequestSourceBranch { |
| 1846 | export type Variables = typeof PullRequestSourceBranch.variables.Type |
| 1847 | export type Result = typeof PullRequestSourceBranch.result.Type |
| 1848 | } |
| 1849 | |
| 1850 | /** Every operation in pullRequestReads.graphql. */ |
| 1851 | export const PullRequestReadsGraphQLGroup = GraphQLGroup.make(RoutingIdentityViewer, ActorAvatars, PullRequestCore, PullRequestCheckContexts, PullRequestPreview, PullRequestActivity, PullRequestCommitStats, PullRequestHeads, PullRequestNodeId, PullRequestSubject, ViewerPermissions, ReviewerCandidates, LabelCandidates, RepositoryLabels, RepositoryReferences, RepositoryAuthors, PullRequestFilesViewed, PullRequestFileStats, PullRequestMergeMessage, PullRequestActionState, PullRequestBranchToDelete, PullRequestSourceBranch) |