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

issues.graphql.ts

1,089 lines46.2 KB

1// Generated by @effect/graphql-generator from issues.graphql. Do not edit.
2import { GraphQL, GraphQLGroup } from "effect/graphql"
3import * as Schema from "effect/Schema"
4import * as Shared from "../../schema/github.graphql.ts"
5​
6/** A user is an individual's account on GitHub that owns repositories and can make new content. */
7export const AuthorUser = Schema.Struct({
8 __typename: Schema.Literal("User"),
9 /** The username used to login. */
10 login: Schema.String,
11 /** A URL pointing to the user's public avatar. */
12 avatarUrl: Shared.URI,
13 /** The user's public profile name. */
14 name: Schema.NullOr(Schema.String)
15})
16export interface AuthorUser extends Schema.Struct.Type<typeof AuthorUser.fields> {}
17​
18/** Represents an object which can take actions on GitHub. Typically a User or Bot. */
19export const ActorOther = Schema.Struct({
20 __typename: GraphQL.otherTypename<Shared.Typename.Actor>()(["User"]),
21 /** The username of the actor. */
22 login: Schema.String,
23 /** A URL pointing to the actor's public avatar. */
24 avatarUrl: Shared.URI
25})
26export interface ActorOther extends Schema.Struct.Type<typeof ActorOther.fields> {}
27​
28/**
29 * `fragment IssueRow on Issue`
30 *
31 * An Issue is a place to discuss ideas, enhancements, tasks, and bugs for a project.
32 */
33export const IssueRow = Schema.Struct({
34 /** Identifies the issue number. */
35 number: Shared.Int,
36 /** Identifies the issue title. */
37 title: Schema.String,
38 /** The HTTP URL for this issue */
39 url: Shared.URI,
40 /** Identifies the state of the issue. */
41 state: GraphQL.enumLiterals(Shared.IssueState.literals),
42 /** Identifies the reason for the issue state. */
43 stateReason: Schema.NullOr(GraphQL.enumLiterals(Shared.IssueStateReason.literals)),
44 /** Identifies the date and time when the object was created. */
45 createdAt: Shared.DateTime,
46 /** Identifies the date and time when the object was last updated. */
47 updatedAt: Shared.DateTime,
48 /** Identifies the date and time when the object was closed. */
49 closedAt: Schema.NullOr(Shared.DateTime),
50 /** The actor who authored the comment. */
51 author: Schema.NullOr(Schema.Union([
52 AuthorUser,
53 ActorOther
54 ]))
55})
56export interface IssueRow extends Schema.Struct.Type<typeof IssueRow.fields> {}
57​
58/** Information about pagination in a connection. */
59export const SearchPageInfoPageInfo = Schema.Struct({
60 /** When paginating forwards, are there more items? */
61 hasNextPage: Schema.Boolean,
62 /** When paginating forwards, the cursor to continue. */
63 endCursor: Schema.NullOr(Schema.String)
64})
65export interface SearchPageInfoPageInfo extends Schema.Struct.Type<typeof SearchPageInfoPageInfo.fields> {}
66​
67/** A user is an individual's account on GitHub that owns repositories and can make new content. */
68export const AssigneesNodesUser = Schema.Struct({
69 /** The username used to login. */
70 login: Schema.String,
71 /** The user's public profile name. */
72 name: Schema.NullOr(Schema.String),
73 /** A URL pointing to the user's public avatar. */
74 avatarUrl: Shared.URI
75})
76export interface AssigneesNodesUser extends Schema.Struct.Type<typeof AssigneesNodesUser.fields> {}
77​
78/** A list of users. */
79export const NodesAssigneesUserConnection = Schema.Struct({
80 /** A list of nodes. */
81 nodes: Schema.NullOr(Schema.Array(Schema.NullOr(AssigneesNodesUser)))
82})
83export interface NodesAssigneesUserConnection extends Schema.Struct.Type<typeof NodesAssigneesUserConnection.fields> {}
84​
85/** A label for categorizing Issues, Pull Requests, Milestones, or Discussions with a given Repository. */
86export const NodesLabelsNodesLabel = Schema.Struct({
87 /** Identifies the label name. */
88 name: Schema.String,
89 /** Identifies the label color. */
90 color: Schema.String
91})
92export interface NodesLabelsNodesLabel extends Schema.Struct.Type<typeof NodesLabelsNodesLabel.fields> {}
93​
94/** The connection type for Label. */
95export const NodesLabelsLabelConnection = Schema.Struct({
96 /** A list of nodes. */
97 nodes: Schema.NullOr(Schema.Array(Schema.NullOr(NodesLabelsNodesLabel)))
98})
99export interface NodesLabelsLabelConnection extends Schema.Struct.Type<typeof NodesLabelsLabelConnection.fields> {}
100​
101/** The connection type for IssueComment. */
102export const NodesCommentsIssueCommentConnection = Schema.Struct({
103 /** Identifies the total count of items in the connection. */
104 totalCount: Shared.Int
105})
106export interface NodesCommentsIssueCommentConnection extends Schema.Struct.Type<typeof NodesCommentsIssueCommentConnection.fields> {}
107​
108/** An Issue is a place to discuss ideas, enhancements, tasks, and bugs for a project. */
109export const NodesIssue = Schema.Struct({
110 __typename: Schema.Literal("Issue"),
111 ...IssueRow.fields,
112 /** A list of Users assigned to this object. */
113 assignees: NodesAssigneesUserConnection,
114 /** A list of labels associated with the object. */
115 labels: Schema.NullOr(NodesLabelsLabelConnection),
116 /** A list of comments associated with the Issue. */
117 comments: NodesCommentsIssueCommentConnection
118})
119export interface NodesIssue extends Schema.Struct.Type<typeof NodesIssue.fields> {}
120​
121/** The results of a search. */
122export const SearchResultItemOther = Schema.Struct({
123 __typename: GraphQL.otherTypename<Shared.Typename.SearchResultItem>()(["Issue"])
124})
125export interface SearchResultItemOther extends Schema.Struct.Type<typeof SearchResultItemOther.fields> {}
126​
127/**
128 * A list of results that matched against a search query. Regardless of the number
129 * of matches, a maximum of 1,000 results will be available across all types,
130 * potentially split across many pages.
131 */
132export const SearchResultItemConnection = Schema.Struct({
133 /** Information to aid in pagination. */
134 pageInfo: SearchPageInfoPageInfo,
135 /** A list of nodes. */
136 nodes: Schema.NullOr(Schema.Array(Schema.NullOr(Schema.Union([
137 NodesIssue,
138 SearchResultItemOther
139 ]))))
140})
141export interface SearchResultItemConnection extends Schema.Struct.Type<typeof SearchResultItemConnection.fields> {}
142​
143/** `query IssueSearch` */
144export const IssueSearch = GraphQL.query("IssueSearch", {
145 document: {
146 variables: [
147 { name: "q", body: "String!" },
148 { name: "cursor", body: "String" },
149 { name: "rows", body: "Int!" }
150 ],
151 selections: [
152 { name: "search", body: ["(query:$", "q", " type:ISSUE first:$", "rows", " after:$", "cursor", "){pageInfo{hasNextPage endCursor}nodes{__typename...on Issue{...IssueRow assignees(first:20){nodes{login name avatarUrl}}labels(first:20){nodes{name color}}comments{totalCount}}}}"] }
153 ],
154 fragments: [
155 { name: "IssueRow", body: ["on Issue{number title url state stateReason createdAt updatedAt closedAt author{__typename login avatarUrl...on User{name}}}"] }
156 ]
157 },
158 variables: {
159 q: Schema.String,
160 cursor: Schema.optional(Schema.NullOr(Schema.String)),
161 rows: Shared.Int
162 },
163 result: Schema.Struct({
164 /** Perform a search across resources, returning a maximum of 1,000 results. */
165 search: SearchResultItemConnection
166 })
167})
168export declare namespace IssueSearch {
169 export type Variables = typeof IssueSearch.variables.Type
170 export type Result = typeof IssueSearch.result.Type
172​
173/** A user is an individual's account on GitHub that owns repositories and can make new content. */
174export const ViewerUser = Schema.Struct({
175 /** The username used to login. */
176 login: Schema.String
177})
178export interface ViewerUser extends Schema.Struct.Type<typeof ViewerUser.fields> {}
179​
180/** A list of users. */
181export const IssueAssigneesUserConnection = Schema.Struct({
182 /** Information to aid in pagination. */
183 pageInfo: SearchPageInfoPageInfo,
184 /** A list of nodes. */
185 nodes: Schema.NullOr(Schema.Array(Schema.NullOr(AssigneesNodesUser)))
186})
187export interface IssueAssigneesUserConnection extends Schema.Struct.Type<typeof IssueAssigneesUserConnection.fields> {}
188​
189/** The connection type for Label. */
190export const IssueLabelsLabelConnection = Schema.Struct({
191 /** Information to aid in pagination. */
192 pageInfo: SearchPageInfoPageInfo,
193 /** A list of nodes. */
194 nodes: Schema.NullOr(Schema.Array(Schema.NullOr(NodesLabelsNodesLabel)))
195})
196export interface IssueLabelsLabelConnection extends Schema.Struct.Type<typeof IssueLabelsLabelConnection.fields> {}
197​
198/** A user is an individual's account on GitHub that owns repositories and can make new content. */
199export const ReactorsNodesUser = Schema.Struct({
200 __typename: Schema.Literal("User"),
201 /** The username used to login. */
202 login: Schema.String
203})
204export interface ReactorsNodesUser extends Schema.Struct.Type<typeof ReactorsNodesUser.fields> {}
205​
206/** A special type of user which takes actions on behalf of GitHub Apps. */
207export const Bot = Schema.Struct({
208 __typename: Schema.Literal("Bot"),
209 /** The username of the actor. */
210 login: Schema.String
211})
212export interface Bot extends Schema.Struct.Type<typeof Bot.fields> {}
213​
214/** An account on GitHub, with one or more owners, that has repositories, members and teams. */
215export const Organization = Schema.Struct({
216 __typename: Schema.Literal("Organization"),
217 /** The organization's login name. */
218 login: Schema.String
219})
220export interface Organization extends Schema.Struct.Type<typeof Organization.fields> {}
221​
222/** A placeholder user for attribution of imported data on GitHub. */
223export const Mannequin = Schema.Struct({
224 __typename: Schema.Literal("Mannequin"),
225 /** The username of the actor. */
226 login: Schema.String
227})
228export interface Mannequin extends Schema.Struct.Type<typeof Mannequin.fields> {}
229​
230/** Types that can be assigned to reactions. */
231export const ReactorOther = Schema.Struct({
232 __typename: GraphQL.otherTypename<Shared.Typename.Reactor>()(["User", "Bot", "Organization", "Mannequin"])
233})
234export interface ReactorOther extends Schema.Struct.Type<typeof ReactorOther.fields> {}
235​
236/** The connection type for Reactor. */
237export const ReactorConnection = Schema.Struct({
238 /** Identifies the total count of items in the connection. */
239 totalCount: Shared.Int,
240 /** A list of nodes. */
241 nodes: Schema.NullOr(Schema.Array(Schema.NullOr(Schema.Union([
242 ReactorsNodesUser,
243 Bot,
244 Organization,
245 Mannequin,
246 ReactorOther
247 ]))))
248})
249export interface ReactorConnection extends Schema.Struct.Type<typeof ReactorConnection.fields> {}
250​
251/** A group of emoji reactions to a particular piece of content. */
252export const ReactionGroup = Schema.Struct({
253 /** Identifies the emoji reaction. */
254 content: GraphQL.enumLiterals(Shared.ReactionContent.literals),
255 /** Whether or not the authenticated user has left a reaction on the subject. */
256 viewerHasReacted: Schema.Boolean,
257 /** Reactors to the reaction subject with the emotion represented by this reaction group. */
258 reactors: ReactorConnection
259})
260export interface ReactionGroup extends Schema.Struct.Type<typeof ReactionGroup.fields> {}
261​
262/** Information about pagination in a connection. */
263export const CommentsPageInfoPageInfo = Schema.Struct({
264 /** When paginating backwards, are there more items? */
265 hasPreviousPage: Schema.Boolean,
266 /** When paginating backwards, the cursor to continue. */
267 startCursor: Schema.NullOr(Schema.String)
268})
269export interface CommentsPageInfoPageInfo extends Schema.Struct.Type<typeof CommentsPageInfoPageInfo.fields> {}
270​
271/** Represents an object which can take actions on GitHub. Typically a User or Bot. */
272export const Actor = Schema.Struct({
273 __typename: GraphQL.otherTypename<Shared.Typename.Actor>()([]),
274 /** The username of the actor. */
275 login: Schema.String,
276 /** A URL pointing to the actor's public avatar. */
277 avatarUrl: Shared.URI
278})
279export interface Actor extends Schema.Struct.Type<typeof Actor.fields> {}
280​
281/** Represents a comment on an Issue. */
282export const NodesIssueComment = Schema.Struct({
283 /** The Node ID of the IssueComment object */
284 id: Shared.ID,
285 /** The actor who authored the comment. */
286 author: Schema.NullOr(Actor),
287 /** The body as Markdown. */
288 body: Schema.String,
289 /** Identifies the date and time when the object was created. */
290 createdAt: Shared.DateTime,
291 /** The HTTP URL for this issue comment */
292 url: Shared.URI,
293 /** A list of reactions grouped by content left on the subject. */
294 reactionGroups: Schema.NullOr(Schema.Array(ReactionGroup))
295})
296export interface NodesIssueComment extends Schema.Struct.Type<typeof NodesIssueComment.fields> {}
297​
298/** The connection type for IssueComment. */
299export const IssueDetailRepositoryIssueCommentsIssueCommentConnection = Schema.Struct({
300 /** Identifies the total count of items in the connection. */
301 totalCount: Shared.Int,
302 /** Information to aid in pagination. */
303 pageInfo: CommentsPageInfoPageInfo,
304 /** A list of nodes. */
305 nodes: Schema.NullOr(Schema.Array(Schema.NullOr(NodesIssueComment)))
306})
307export interface IssueDetailRepositoryIssueCommentsIssueCommentConnection extends Schema.Struct.Type<typeof IssueDetailRepositoryIssueCommentsIssueCommentConnection.fields> {}
308​
309/** A repository contains the content for a project. */
310export const NodesRepositoryRepository = Schema.Struct({
311 /** The repository's name with owner. */
312 nameWithOwner: Schema.String
313})
314export interface NodesRepositoryRepository extends Schema.Struct.Type<typeof NodesRepositoryRepository.fields> {}
315​
316/** A repository pull request. */
317export const NodesPullRequest = Schema.Struct({
318 /** Identifies the pull request number. */
319 number: Shared.Int,
320 /** Identifies the pull request title. */
321 title: Schema.String,
322 /** The HTTP URL for this pull request. */
323 url: Shared.URI,
324 /** Identifies the state of the pull request. */
325 state: GraphQL.enumLiterals(Shared.PullRequestState.literals),
326 /** Identifies if the pull request is a draft. */
327 isDraft: Schema.Boolean,
328 /** The repository associated with this node. */
329 repository: NodesRepositoryRepository
330})
331export interface NodesPullRequest extends Schema.Struct.Type<typeof NodesPullRequest.fields> {}
332​
333/** The connection type for PullRequest. */
334export const PullRequestConnection = Schema.Struct({
335 /** Information to aid in pagination. */
336 pageInfo: SearchPageInfoPageInfo,
337 /** A list of nodes. */
338 nodes: Schema.NullOr(Schema.Array(Schema.NullOr(NodesPullRequest)))
339})
340export interface PullRequestConnection extends Schema.Struct.Type<typeof PullRequestConnection.fields> {}
341​
342/** Represents a 'closed' event on any `Closable`. */
343export const ClosedEvent = Schema.Struct({
344 __typename: Schema.Literal("ClosedEvent"),
345 /** The Node ID of the ClosedEvent object */
346 id: Shared.ID,
347 /** Identifies the date and time when the object was created. */
348 createdAt: Shared.DateTime,
349 /** Identifies the actor who performed the event. */
350 actor: Schema.NullOr(Actor)
351})
352export interface ClosedEvent extends Schema.Struct.Type<typeof ClosedEvent.fields> {}
353​
354/** Represents a 'reopened' event on any `Closable`. */
355export const ReopenedEvent = Schema.Struct({
356 __typename: Schema.Literal("ReopenedEvent"),
357 /** The Node ID of the ReopenedEvent object */
358 id: Shared.ID,
359 /** Identifies the date and time when the object was created. */
360 createdAt: Shared.DateTime,
361 /** Identifies the actor who performed the event. */
362 actor: Schema.NullOr(Actor)
363})
364export interface ReopenedEvent extends Schema.Struct.Type<typeof ReopenedEvent.fields> {}
365​
366/** A label for categorizing Issues, Pull Requests, Milestones, or Discussions with a given Repository. */
367export const LabelLabel = Schema.Struct({
368 /** Identifies the label name. */
369 name: Schema.String
370})
371export interface LabelLabel extends Schema.Struct.Type<typeof LabelLabel.fields> {}
372​
373/** Represents a 'labeled' event on a given issue or pull request. */
374export const LabeledEvent = Schema.Struct({
375 __typename: Schema.Literal("LabeledEvent"),
376 /** The Node ID of the LabeledEvent object */
377 id: Shared.ID,
378 /** Identifies the date and time when the object was created. */
379 createdAt: Shared.DateTime,
380 /** Identifies the actor who performed the event. */
381 actor: Schema.NullOr(Actor),
382 /** Identifies the label associated with the 'labeled' event. */
383 label: LabelLabel
384})
385export interface LabeledEvent extends Schema.Struct.Type<typeof LabeledEvent.fields> {}
386​
387/** Represents an 'unlabeled' event on a given issue or pull request. */
388export const UnlabeledEvent = Schema.Struct({
389 __typename: Schema.Literal("UnlabeledEvent"),
390 /** The Node ID of the UnlabeledEvent object */
391 id: Shared.ID,
392 /** Identifies the date and time when the object was created. */
393 createdAt: Shared.DateTime,
394 /** Identifies the actor who performed the event. */
395 actor: Schema.NullOr(Actor),
396 /** Identifies the label associated with the 'unlabeled' event. */
397 label: LabelLabel
398})
399export interface UnlabeledEvent extends Schema.Struct.Type<typeof UnlabeledEvent.fields> {}
400​
401/** A user is an individual's account on GitHub that owns repositories and can make new content. */
402export const AssigneeUser = Schema.Struct({
403 __typename: Schema.Literal("User"),
404 /** The username used to login. */
405 login: Schema.String,
406 /** The user's public profile name. */
407 name: Schema.NullOr(Schema.String)
408})
409export interface AssigneeUser extends Schema.Struct.Type<typeof AssigneeUser.fields> {}
410​
411/** Types that can be assigned to issues. */
412export const AssigneeOther = Schema.Struct({
413 __typename: GraphQL.otherTypename<Shared.Typename.Assignee>()(["User", "Bot"])
414})
415export interface AssigneeOther extends Schema.Struct.Type<typeof AssigneeOther.fields> {}
416​
417/** Represents an 'assigned' event on any assignable object. */
418export const AssignedEvent = Schema.Struct({
419 __typename: Schema.Literal("AssignedEvent"),
420 /** The Node ID of the AssignedEvent object */
421 id: Shared.ID,
422 /** Identifies the date and time when the object was created. */
423 createdAt: Shared.DateTime,
424 /** Identifies the actor who performed the event. */
425 actor: Schema.NullOr(Actor),
426 /** Identifies the user or mannequin that was assigned. */
427 assignee: Schema.NullOr(Schema.Union([
428 AssigneeUser,
429 Bot,
430 AssigneeOther
431 ]))
432})
433export interface AssignedEvent extends Schema.Struct.Type<typeof AssignedEvent.fields> {}
434​
435/** Represents an 'unassigned' event on any assignable object. */
436export const UnassignedEvent = Schema.Struct({
437 __typename: Schema.Literal("UnassignedEvent"),
438 /** The Node ID of the UnassignedEvent object */
439 id: Shared.ID,
440 /** Identifies the date and time when the object was created. */
441 createdAt: Shared.DateTime,
442 /** Identifies the actor who performed the event. */
443 actor: Schema.NullOr(Actor),
444 /** Identifies the user or mannequin that was unassigned. */
445 assignee: Schema.NullOr(Schema.Union([
446 AssigneeUser,
447 Bot,
448 AssigneeOther
449 ]))
450})
451export interface UnassignedEvent extends Schema.Struct.Type<typeof UnassignedEvent.fields> {}
452​
453/** Represents a 'renamed' event on a given issue or pull request */
454export const RenamedTitleEvent = Schema.Struct({
455 __typename: Schema.Literal("RenamedTitleEvent"),
456 /** The Node ID of the RenamedTitleEvent object */
457 id: Shared.ID,
458 /** Identifies the date and time when the object was created. */
459 createdAt: Shared.DateTime,
460 /** Identifies the actor who performed the event. */
461 actor: Schema.NullOr(Actor),
462 /** Identifies the current title of the issue or pull request. */
463 currentTitle: Schema.String
464})
465export interface RenamedTitleEvent extends Schema.Struct.Type<typeof RenamedTitleEvent.fields> {}
466​
467/** A repository pull request. */
468export const SourcePullRequest = Schema.Struct({
469 __typename: Schema.Literal("PullRequest"),
470 /** Identifies the pull request number. */
471 number: Shared.Int,
472 /** Identifies the pull request title. */
473 title: Schema.String,
474 /** The HTTP URL for this pull request. */
475 url: Shared.URI,
476 /** Identifies the state of the pull request. */
477 state: GraphQL.enumLiterals(Shared.PullRequestState.literals),
478 /** Identifies if the pull request is a draft. */
479 isDraft: Schema.Boolean,
480 /** The repository associated with this node. */
481 repository: NodesRepositoryRepository
482})
483export interface SourcePullRequest extends Schema.Struct.Type<typeof SourcePullRequest.fields> {}
484​
485/** An Issue is a place to discuss ideas, enhancements, tasks, and bugs for a project. */
486export const SourceIssue = Schema.Struct({
487 __typename: Schema.Literal("Issue"),
488 /** Identifies the issue number. */
489 number: Shared.Int,
490 /** The HTTP URL for this issue */
491 url: Shared.URI,
492 /** The repository associated with this node. */
493 repository: NodesRepositoryRepository
494})
495export interface SourceIssue extends Schema.Struct.Type<typeof SourceIssue.fields> {}
496​
497/** Any referencable object */
498export const ReferencedSubjectOther = Schema.Struct({
499 __typename: GraphQL.otherTypename<Shared.Typename.ReferencedSubject>()(["PullRequest", "Issue"])
500})
501export interface ReferencedSubjectOther extends Schema.Struct.Type<typeof ReferencedSubjectOther.fields> {}
502​
503/** Represents a mention made by one issue or pull request to another. */
504export const CrossReferencedEvent = Schema.Struct({
505 __typename: Schema.Literal("CrossReferencedEvent"),
506 /** The Node ID of the CrossReferencedEvent object */
507 id: Shared.ID,
508 /** Identifies the date and time when the object was created. */
509 createdAt: Shared.DateTime,
510 /** Identifies the actor who performed the event. */
511 actor: Schema.NullOr(Actor),
512 /** Issue or pull request that made the reference. */
513 source: Schema.Union([
514 SourcePullRequest,
515 SourceIssue,
516 ReferencedSubjectOther
517 ])
518})
519export interface CrossReferencedEvent extends Schema.Struct.Type<typeof CrossReferencedEvent.fields> {}
520​
521/** An item in an issue timeline */
522export const IssueTimelineItemsOther = Schema.Struct({
523 __typename: GraphQL.otherTypename<Shared.Typename.IssueTimelineItems>()(["ClosedEvent", "ReopenedEvent", "LabeledEvent", "UnlabeledEvent", "AssignedEvent", "UnassignedEvent", "RenamedTitleEvent", "CrossReferencedEvent"])
524})
525export interface IssueTimelineItemsOther extends Schema.Struct.Type<typeof IssueTimelineItemsOther.fields> {}
526​
527/** The connection type for IssueTimelineItems. */
528export const IssueTimelineItemsConnection = Schema.Struct({
529 /** A list of nodes. */
530 nodes: Schema.NullOr(Schema.Array(Schema.NullOr(Schema.Union([
531 ClosedEvent,
532 ReopenedEvent,
533 LabeledEvent,
534 UnlabeledEvent,
535 AssignedEvent,
536 UnassignedEvent,
537 RenamedTitleEvent,
538 CrossReferencedEvent,
539 IssueTimelineItemsOther
540 ]))))
541})
542export interface IssueTimelineItemsConnection extends Schema.Struct.Type<typeof IssueTimelineItemsConnection.fields> {}
543​
544/** An Issue is a place to discuss ideas, enhancements, tasks, and bugs for a project. */
545export const IssueDetailRepositoryIssueIssue = Schema.Struct({
546 ...IssueRow.fields,
547 /** A list of Users assigned to this object. */
548 assignees: IssueAssigneesUserConnection,
549 /** A list of labels associated with the object. */
550 labels: Schema.NullOr(IssueLabelsLabelConnection),
551 /** Identifies the body of the issue. */
552 body: Schema.String,
553 /** Check if the current viewer can update this object. */
554 viewerCanUpdate: Schema.Boolean,
555 /** Indicates if the object can be closed by the viewer. */
556 viewerCanClose: Schema.Boolean,
557 /** Indicates if the object can be reopened by the viewer. */
558 viewerCanReopen: Schema.Boolean,
559 /** A list of reactions grouped by content left on the subject. */
560 reactionGroups: Schema.NullOr(Schema.Array(ReactionGroup)),
561 /** A list of comments associated with the Issue. */
562 comments: IssueDetailRepositoryIssueCommentsIssueCommentConnection,
563 /** List of open pull requests referenced from this issue */
564 closedByPullRequestsReferences: Schema.NullOr(PullRequestConnection),
565 /** A list of events, comments, commits, etc. associated with the issue. */
566 timelineItems: IssueTimelineItemsConnection
567})
568export interface IssueDetailRepositoryIssueIssue extends Schema.Struct.Type<typeof IssueDetailRepositoryIssueIssue.fields> {}
569​
570/** A repository contains the content for a project. */
571export const IssueDetailRepositoryRepository = Schema.Struct({
572 /** The users permission level on the repository. Will return null if authenticated as an GitHub App. */
573 viewerPermission: Schema.NullOr(GraphQL.enumLiterals(Shared.RepositoryPermission.literals)),
574 /** Returns a single issue from the current repository by number. */
575 issue: Schema.NullOr(IssueDetailRepositoryIssueIssue)
576})
577export interface IssueDetailRepositoryRepository extends Schema.Struct.Type<typeof IssueDetailRepositoryRepository.fields> {}
578​
579/** `query IssueDetail` */
580export const IssueDetail = GraphQL.query("IssueDetail", {
581 document: {
582 variables: [
583 { name: "owner", body: "String!" },
584 { name: "name", body: "String!" },
585 { name: "number", body: "Int!" }
586 ],
587 selections: [
588 { name: "viewer", body: ["{login}"] },
589 { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){viewerPermission issue(number:$", "number", "){...IssueRow assignees(first:100){pageInfo{hasNextPage endCursor}nodes{login name avatarUrl}}labels(first:100){pageInfo{hasNextPage endCursor}nodes{name color}}body viewerCanUpdate viewerCanClose viewerCanReopen...Reactions comments(last:100){totalCount pageInfo{hasPreviousPage startCursor}nodes{id author{__typename login avatarUrl}body createdAt url...Reactions}}closedByPullRequestsReferences(first:20 includeClosedPrs:true){pageInfo{hasNextPage endCursor}nodes{number title url state isDraft repository{nameWithOwner}}}timelineItems(last:100 itemTypes:[CLOSED_EVENT REOPENED_EVENT LABELED_EVENT UNLABELED_EVENT ASSIGNED_EVENT UNASSIGNED_EVENT RENAMED_TITLE_EVENT CROSS_REFERENCED_EVENT]){nodes{__typename...on ClosedEvent{id createdAt actor{__typename login avatarUrl}}...on ReopenedEvent{id createdAt actor{__typename login avatarUrl}}...on LabeledEvent{id createdAt actor{__typename login avatarUrl}label{name}}...on UnlabeledEvent{id createdAt actor{__typename login avatarUrl}label{name}}...on AssignedEvent{id createdAt actor{__typename login avatarUrl}assignee{__typename...on User{login name}...on Bot{login}}}...on UnassignedEvent{id createdAt actor{__typename login avatarUrl}assignee{__typename...on User{login name}...on Bot{login}}}...on RenamedTitleEvent{id createdAt actor{__typename login avatarUrl}currentTitle}...on CrossReferencedEvent{id createdAt actor{__typename login avatarUrl}source{__typename...on PullRequest{number title url state isDraft repository{nameWithOwner}}...on Issue{number url repository{nameWithOwner}}}}}}}}"] }
590 ],
591 fragments: [
592 { name: "IssueRow", body: ["on Issue{number title url state stateReason createdAt updatedAt closedAt author{__typename login avatarUrl...on User{name}}}"] },
593 { name: "Reactions", body: ["on Reactable{__typename reactionGroups{content viewerHasReacted reactors(first:10){totalCount nodes{__typename...on User{login}...on Bot{login}...on Organization{login}...on Mannequin{login}}}}}"] }
594 ]
595 },
596 variables: {
597 owner: Schema.String,
598 name: Schema.String,
599 number: Shared.Int
600 },
601 result: Schema.Struct({
602 /** The currently authenticated user. */
603 viewer: ViewerUser,
604 /** Lookup a given repository by the owner and repository name. */
605 repository: Schema.NullOr(IssueDetailRepositoryRepository)
606 })
607})
608export declare namespace IssueDetail {
609 export type Variables = typeof IssueDetail.variables.Type
610 export type Result = typeof IssueDetail.result.Type
612​
613/** The connection type for IssueComment. */
614export const IssueCommentsRepositoryIssueCommentsIssueCommentConnection = Schema.Struct({
615 /** Information to aid in pagination. */
616 pageInfo: CommentsPageInfoPageInfo,
617 /** A list of nodes. */
618 nodes: Schema.NullOr(Schema.Array(Schema.NullOr(NodesIssueComment)))
619})
620export interface IssueCommentsRepositoryIssueCommentsIssueCommentConnection extends Schema.Struct.Type<typeof IssueCommentsRepositoryIssueCommentsIssueCommentConnection.fields> {}
621​
622/** An Issue is a place to discuss ideas, enhancements, tasks, and bugs for a project. */
623export const IssueCommentsRepositoryIssueIssue = Schema.Struct({
624 /** A list of comments associated with the Issue. */
625 comments: IssueCommentsRepositoryIssueCommentsIssueCommentConnection
626})
627export interface IssueCommentsRepositoryIssueIssue extends Schema.Struct.Type<typeof IssueCommentsRepositoryIssueIssue.fields> {}
628​
629/** A repository contains the content for a project. */
630export const IssueCommentsRepositoryRepository = Schema.Struct({
631 /** Returns a single issue from the current repository by number. */
632 issue: Schema.NullOr(IssueCommentsRepositoryIssueIssue)
633})
634export interface IssueCommentsRepositoryRepository extends Schema.Struct.Type<typeof IssueCommentsRepositoryRepository.fields> {}
635​
636/** `query IssueComments` */
637export const IssueComments = GraphQL.query("IssueComments", {
638 document: {
639 variables: [
640 { name: "owner", body: "String!" },
641 { name: "name", body: "String!" },
642 { name: "number", body: "Int!" },
643 { name: "cursor", body: "String!" }
644 ],
645 selections: [
646 { name: "viewer", body: ["{login}"] },
647 { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){issue(number:$", "number", "){comments(last:100 before:$", "cursor", "){pageInfo{hasPreviousPage startCursor}nodes{id author{__typename login avatarUrl}body createdAt url...Reactions}}}}"] }
648 ],
649 fragments: [
650 { name: "Reactions", body: ["on Reactable{__typename reactionGroups{content viewerHasReacted reactors(first:10){totalCount nodes{__typename...on User{login}...on Bot{login}...on Organization{login}...on Mannequin{login}}}}}"] }
651 ]
652 },
653 variables: {
654 owner: Schema.String,
655 name: Schema.String,
656 number: Shared.Int,
657 cursor: Schema.String
658 },
659 result: Schema.Struct({
660 /** The currently authenticated user. */
661 viewer: ViewerUser,
662 /** Lookup a given repository by the owner and repository name. */
663 repository: Schema.NullOr(IssueCommentsRepositoryRepository)
664 })
665})
666export declare namespace IssueComments {
667 export type Variables = typeof IssueComments.variables.Type
668 export type Result = typeof IssueComments.result.Type
670​
671/** An Issue is a place to discuss ideas, enhancements, tasks, and bugs for a project. */
672export const IssueLinkMetadataRepositoryIssueIssue = Schema.Struct({
673 /** Identifies the issue number. */
674 number: Shared.Int,
675 /** Identifies the issue title. */
676 title: Schema.String,
677 /** The HTTP URL for this issue */
678 url: Shared.URI
679})
680export interface IssueLinkMetadataRepositoryIssueIssue extends Schema.Struct.Type<typeof IssueLinkMetadataRepositoryIssueIssue.fields> {}
681​
682/** A repository contains the content for a project. */
683export const IssueLinkMetadataRepositoryRepository = Schema.Struct({
684 /** Returns a single issue from the current repository by number. */
685 issue: Schema.NullOr(IssueLinkMetadataRepositoryIssueIssue)
686})
687export interface IssueLinkMetadataRepositoryRepository extends Schema.Struct.Type<typeof IssueLinkMetadataRepositoryRepository.fields> {}
688​
689/** `query IssueLinkMetadata` */
690export const IssueLinkMetadata = GraphQL.query("IssueLinkMetadata", {
691 document: {
692 variables: [
693 { name: "owner", body: "String!" },
694 { name: "name", body: "String!" },
695 { name: "number", body: "Int!" }
696 ],
697 selections: [
698 { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){issue(number:$", "number", "){number title url}}"] }
699 ],
700 fragments: []
701 },
702 variables: {
703 owner: Schema.String,
704 name: Schema.String,
705 number: Shared.Int
706 },
707 result: Schema.Struct({
708 /** Lookup a given repository by the owner and repository name. */
709 repository: Schema.NullOr(IssueLinkMetadataRepositoryRepository)
710 })
711})
712export declare namespace IssueLinkMetadata {
713 export type Variables = typeof IssueLinkMetadata.variables.Type
714 export type Result = typeof IssueLinkMetadata.result.Type
716​
717/** An Issue is a place to discuss ideas, enhancements, tasks, and bugs for a project. */
718export const IssueNodeIdRepositoryIssueIssue = Schema.Struct({
719 /** The Node ID of the Issue object */
720 id: Shared.ID,
721 /** Identifies the state of the issue. */
722 state: GraphQL.enumLiterals(Shared.IssueState.literals),
723 /** Identifies the reason for the issue state. */
724 stateReason: Schema.NullOr(GraphQL.enumLiterals(Shared.IssueStateReason.literals))
725})
726export interface IssueNodeIdRepositoryIssueIssue extends Schema.Struct.Type<typeof IssueNodeIdRepositoryIssueIssue.fields> {}
727​
728/** A repository contains the content for a project. */
729export const IssueNodeIdRepositoryRepository = Schema.Struct({
730 /** Returns a single issue from the current repository by number. */
731 issue: Schema.NullOr(IssueNodeIdRepositoryIssueIssue)
732})
733export interface IssueNodeIdRepositoryRepository extends Schema.Struct.Type<typeof IssueNodeIdRepositoryRepository.fields> {}
734​
735/** `query IssueNodeId` */
736export const IssueNodeId = GraphQL.query("IssueNodeId", {
737 document: {
738 variables: [
739 { name: "owner", body: "String!" },
740 { name: "name", body: "String!" },
741 { name: "number", body: "Int!" }
742 ],
743 selections: [
744 { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){issue(number:$", "number", "){id state stateReason}}"] }
745 ],
746 fragments: []
747 },
748 variables: {
749 owner: Schema.String,
750 name: Schema.String,
751 number: Shared.Int
752 },
753 result: Schema.Struct({
754 /** Lookup a given repository by the owner and repository name. */
755 repository: Schema.NullOr(IssueNodeIdRepositoryRepository)
756 })
757})
758export declare namespace IssueNodeId {
759 export type Variables = typeof IssueNodeId.variables.Type
760 export type Result = typeof IssueNodeId.result.Type
762​
763/** An Issue is a place to discuss ideas, enhancements, tasks, and bugs for a project. */
764export const IssueCommentScopeRepositoryIssueIssue = Schema.Struct({
765 /** The Node ID of the Issue object */
766 id: Shared.ID
767})
768export interface IssueCommentScopeRepositoryIssueIssue extends Schema.Struct.Type<typeof IssueCommentScopeRepositoryIssueIssue.fields> {}
769​
770/** A repository contains the content for a project. */
771export const IssueCommentScopeRepositoryRepository = Schema.Struct({
772 /** Returns a single issue from the current repository by number. */
773 issue: Schema.NullOr(IssueCommentScopeRepositoryIssueIssue)
774})
775export interface IssueCommentScopeRepositoryRepository extends Schema.Struct.Type<typeof IssueCommentScopeRepositoryRepository.fields> {}
776​
777/** Represents a comment on an Issue. */
778export const NodeIssueComment = Schema.Struct({
779 __typename: Schema.Literal("IssueComment"),
780 /** Identifies the issue associated with the comment. */
781 issue: IssueCommentScopeRepositoryIssueIssue
782})
783export interface NodeIssueComment extends Schema.Struct.Type<typeof NodeIssueComment.fields> {}
784​
785/** An object with an ID. */
786export const NodeOther = Schema.Struct({
787 __typename: GraphQL.otherTypename<Shared.Typename.Node>()(["IssueComment"])
788})
789export interface NodeOther extends Schema.Struct.Type<typeof NodeOther.fields> {}
790​
791/** `query IssueCommentScope` */
792export const IssueCommentScope = GraphQL.query("IssueCommentScope", {
793 document: {
794 variables: [
795 { name: "owner", body: "String!" },
796 { name: "name", body: "String!" },
797 { name: "number", body: "Int!" },
798 { name: "commentId", body: "ID!" }
799 ],
800 selections: [
801 { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){issue(number:$", "number", "){id}}"] },
802 { name: "node", body: ["(id:$", "commentId", "){__typename...on IssueComment{issue{id}}}"] }
803 ],
804 fragments: []
805 },
806 variables: {
807 owner: Schema.String,
808 name: Schema.String,
809 number: Shared.Int,
810 commentId: Shared.ID
811 },
812 result: Schema.Struct({
813 /** Lookup a given repository by the owner and repository name. */
814 repository: Schema.NullOr(IssueCommentScopeRepositoryRepository),
815 /** Fetches an object given its ID. */
816 node: Schema.NullOr(Schema.Union([
817 NodeIssueComment,
818 NodeOther
819 ]))
820 })
821})
822export declare namespace IssueCommentScope {
823 export type Variables = typeof IssueCommentScope.variables.Type
824 export type Result = typeof IssueCommentScope.result.Type
826​
827/** Information about pagination in a connection. */
828export const LabelsPageInfoPageInfo = Schema.Struct({
829 /** When paginating forwards, are there more items? */
830 hasNextPage: Schema.Boolean
831})
832export interface LabelsPageInfoPageInfo extends Schema.Struct.Type<typeof LabelsPageInfoPageInfo.fields> {}
833​
834/** A label for categorizing Issues, Pull Requests, Milestones, or Discussions with a given Repository. */
835export const RepositoryLabelsNodesLabel = Schema.Struct({
836 /** Identifies the label name. */
837 name: Schema.String,
838 /** Identifies the label color. */
839 color: Schema.String,
840 /** A brief description of this label. */
841 description: Schema.NullOr(Schema.String)
842})
843export interface RepositoryLabelsNodesLabel extends Schema.Struct.Type<typeof RepositoryLabelsNodesLabel.fields> {}
844​
845/** The connection type for Label. */
846export const RepositoryLabelsLabelConnection = Schema.Struct({
847 /** Information to aid in pagination. */
848 pageInfo: LabelsPageInfoPageInfo,
849 /** A list of nodes. */
850 nodes: Schema.NullOr(Schema.Array(Schema.NullOr(RepositoryLabelsNodesLabel)))
851})
852export interface RepositoryLabelsLabelConnection extends Schema.Struct.Type<typeof RepositoryLabelsLabelConnection.fields> {}
853​
854/** A list of users. */
855export const AssignableUsersUserConnection = Schema.Struct({
856 /** Information to aid in pagination. */
857 pageInfo: LabelsPageInfoPageInfo,
858 /** A list of nodes. */
859 nodes: Schema.NullOr(Schema.Array(Schema.NullOr(AssigneesNodesUser)))
860})
861export interface AssignableUsersUserConnection extends Schema.Struct.Type<typeof AssignableUsersUserConnection.fields> {}
862​
863/** A repository contains the content for a project. */
864export const IssueCandidatesRepositoryRepository = Schema.Struct({
865 /** A list of labels associated with the repository. */
866 labels: Schema.NullOr(RepositoryLabelsLabelConnection),
867 /** A list of users that can be assigned to issues in this repository. */
868 assignableUsers: AssignableUsersUserConnection
869})
870export interface IssueCandidatesRepositoryRepository extends Schema.Struct.Type<typeof IssueCandidatesRepositoryRepository.fields> {}
871​
872/** `query IssueCandidates` */
873export const IssueCandidates = GraphQL.query("IssueCandidates", {
874 document: {
875 variables: [
876 { name: "owner", body: "String!" },
877 { name: "name", body: "String!" }
878 ],
879 selections: [
880 { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){labels(first:100){pageInfo{hasNextPage}nodes{name color description}}assignableUsers(first:100){pageInfo{hasNextPage}nodes{login name avatarUrl}}}"] }
881 ],
882 fragments: []
883 },
884 variables: {
885 owner: Schema.String,
886 name: Schema.String
887 },
888 result: Schema.Struct({
889 /** Lookup a given repository by the owner and repository name. */
890 repository: Schema.NullOr(IssueCandidatesRepositoryRepository)
891 })
892})
893export declare namespace IssueCandidates {
894 export type Variables = typeof IssueCandidates.variables.Type
895 export type Result = typeof IssueCandidates.result.Type
897​
898/** Represents a Git blob. */
899export const Blob = Schema.Struct({
900 __typename: Schema.Literal("Blob"),
901 /** UTF8 text data or null if the Blob is binary */
902 text: Schema.NullOr(Schema.String),
903 /** Indicates whether the contents is truncated */
904 isTruncated: Schema.Boolean
905})
906export interface Blob extends Schema.Struct.Type<typeof Blob.fields> {}
907​
908/** Represents a Git object. */
909export const ObjectGitObjectOther = Schema.Struct({
910 __typename: GraphQL.otherTypename<Shared.Typename.GitObject>()(["Blob"])
911})
912export interface ObjectGitObjectOther extends Schema.Struct.Type<typeof ObjectGitObjectOther.fields> {}
913​
914/** Represents a Git tree entry. */
915export const TreeEntry = Schema.Struct({
916 /** Entry file name. */
917 name: Schema.String,
918 /** Entry file object. */
919 object: Schema.NullOr(Schema.Union([
920 Blob,
921 ObjectGitObjectOther
922 ]))
923})
924export interface TreeEntry extends Schema.Struct.Type<typeof TreeEntry.fields> {}
925​
926/** Represents a Git tree. */
927export const Tree = Schema.Struct({
928 __typename: Schema.Literal("Tree"),
929 /** A list of tree entries. */
930 entries: Schema.NullOr(Schema.Array(TreeEntry))
931})
932export interface Tree extends Schema.Struct.Type<typeof Tree.fields> {}
933​
934/** Represents a Git object. */
935export const TemplateDirectoryGitObjectOther = Schema.Struct({
936 __typename: GraphQL.otherTypename<Shared.Typename.GitObject>()(["Tree"])
937})
938export interface TemplateDirectoryGitObjectOther extends Schema.Struct.Type<typeof TemplateDirectoryGitObjectOther.fields> {}
939​
940/** A list of users. */
941export const IssueTemplatesAssigneesUserConnection = Schema.Struct({
942 /** A list of nodes. */
943 nodes: Schema.NullOr(Schema.Array(Schema.NullOr(ViewerUser)))
944})
945export interface IssueTemplatesAssigneesUserConnection extends Schema.Struct.Type<typeof IssueTemplatesAssigneesUserConnection.fields> {}
946​
947/** The connection type for Label. */
948export const IssueTemplatesLabelsLabelConnection = Schema.Struct({
949 /** A list of nodes. */
950 nodes: Schema.NullOr(Schema.Array(Schema.NullOr(LabelLabel)))
951})
952export interface IssueTemplatesLabelsLabelConnection extends Schema.Struct.Type<typeof IssueTemplatesLabelsLabelConnection.fields> {}
953​
954/** A repository issue template. */
955export const IssueTemplate = Schema.Struct({
956 /** The template filename. */
957 filename: Schema.String,
958 /** The template name. */
959 name: Schema.String,
960 /** The template purpose. */
961 about: Schema.NullOr(Schema.String),
962 /** The suggested issue title. */
963 title: Schema.NullOr(Schema.String),
964 /** The suggested issue body. */
965 body: Schema.NullOr(Schema.String),
966 /** The suggested assignees. */
967 assignees: IssueTemplatesAssigneesUserConnection,
968 /** The suggested issue labels */
969 labels: Schema.NullOr(IssueTemplatesLabelsLabelConnection)
970})
971export interface IssueTemplate extends Schema.Struct.Type<typeof IssueTemplate.fields> {}
972​
973/** A repository contains the content for a project. */
974export const IssueTemplatesRepositoryRepository = Schema.Struct({
975 /** A Git object in the repository */
976 templateDirectory: Schema.NullOr(Schema.Union([
977 Tree,
978 TemplateDirectoryGitObjectOther
979 ])),
980 /** Returns a list of issue templates associated to the repository */
981 issueTemplates: Schema.NullOr(Schema.Array(IssueTemplate))
982})
983export interface IssueTemplatesRepositoryRepository extends Schema.Struct.Type<typeof IssueTemplatesRepositoryRepository.fields> {}
984​
985/** `query IssueTemplates` */
986export const IssueTemplates = GraphQL.query("IssueTemplates", {
987 document: {
988 variables: [
989 { name: "owner", body: "String!" },
990 { name: "name", body: "String!" }
991 ],
992 selections: [
993 { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){templateDirectory:object(expression:\"HEAD:.github/ISSUE_TEMPLATE\"){__typename...on Tree{entries{name object{__typename...on Blob{text isTruncated}}}}}issueTemplates{filename name about title body assignees(first:25){nodes{login}}labels(first:50){nodes{name}}}}"] }
994 ],
995 fragments: []
996 },
997 variables: {
998 owner: Schema.String,
999 name: Schema.String
1000 },
1001 result: Schema.Struct({
1002 /** Lookup a given repository by the owner and repository name. */
1003 repository: Schema.NullOr(IssueTemplatesRepositoryRepository)
1004 })
1006export declare namespace IssueTemplates {
1007 export type Variables = typeof IssueTemplates.variables.Type
1008 export type Result = typeof IssueTemplates.result.Type
1010​
1011/** `query IssueViewer` */
1012export const IssueViewer = GraphQL.query("IssueViewer", {
1013 document: {
1014 variables: [],
1015 selections: [
1016 { name: "viewer", body: ["{login}"] }
1017 ],
1018 fragments: []
1019 },
1020 result: Schema.Struct({
1021 /** The currently authenticated user. */
1022 viewer: ViewerUser
1023 })
1025export declare namespace IssueViewer {
1026 export type Variables = typeof IssueViewer.variables.Type
1027 export type Result = typeof IssueViewer.result.Type
1029​
1030/** An Issue is a place to discuss ideas, enhancements, tasks, and bugs for a project. */
1031export const IssueCollectionsRepositoryIssueIssue = Schema.Struct({
1032 /** A list of labels associated with the object. */
1033 labels: Schema.optionalKey(Schema.NullOr(IssueLabelsLabelConnection)),
1034 /** A list of Users assigned to this object. */
1035 assignees: Schema.optionalKey(IssueAssigneesUserConnection),
1036 /** List of open pull requests referenced from this issue */
1037 closedByPullRequestsReferences: Schema.optionalKey(Schema.NullOr(PullRequestConnection))
1039export interface IssueCollectionsRepositoryIssueIssue extends Schema.Struct.Type<typeof IssueCollectionsRepositoryIssueIssue.fields> {}
1040​
1041/** A repository contains the content for a project. */
1042export const IssueCollectionsRepositoryRepository = Schema.Struct({
1043 /** Returns a single issue from the current repository by number. */
1044 issue: Schema.NullOr(IssueCollectionsRepositoryIssueIssue)
1046export interface IssueCollectionsRepositoryRepository extends Schema.Struct.Type<typeof IssueCollectionsRepositoryRepository.fields> {}
1047​
1048/** `query IssueCollections` */
1049export const IssueCollections = GraphQL.query("IssueCollections", {
1050 document: {
1051 variables: [
1052 { name: "owner", body: "String!" },
1053 { name: "name", body: "String!" },
1054 { name: "number", body: "Int!" },
1055 { name: "labelsCursor", body: "String" },
1056 { name: "assigneesCursor", body: "String" },
1057 { name: "closingPullRequestsCursor", body: "String" },
1058 { name: "withLabels", body: "Boolean!" },
1059 { name: "withAssignees", body: "Boolean!" },
1060 { name: "withClosingPullRequests", body: "Boolean!" }
1061 ],
1062 selections: [
1063 { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){issue(number:$", "number", "){labels(first:100 after:$", "labelsCursor", ")@include(if:$", "withLabels", "){pageInfo{hasNextPage endCursor}nodes{name color}}assignees(first:100 after:$", "assigneesCursor", ")@include(if:$", "withAssignees", "){pageInfo{hasNextPage endCursor}nodes{login name avatarUrl}}closedByPullRequestsReferences(first:100 after:$", "closingPullRequestsCursor", " includeClosedPrs:true)@include(if:$", "withClosingPullRequests", "){pageInfo{hasNextPage endCursor}nodes{number title url state isDraft repository{nameWithOwner}}}}}"] }
1064 ],
1065 fragments: []
1066 },
1067 variables: {
1068 owner: Schema.String,
1069 name: Schema.String,
1070 number: Shared.Int,
1071 labelsCursor: Schema.optional(Schema.NullOr(Schema.String)),
1072 assigneesCursor: Schema.optional(Schema.NullOr(Schema.String)),
1073 closingPullRequestsCursor: Schema.optional(Schema.NullOr(Schema.String)),
1074 withLabels: Schema.Boolean,
1075 withAssignees: Schema.Boolean,
1076 withClosingPullRequests: Schema.Boolean
1077 },
1078 result: Schema.Struct({
1079 /** Lookup a given repository by the owner and repository name. */
1080 repository: Schema.NullOr(IssueCollectionsRepositoryRepository)
1081 })
1083export declare namespace IssueCollections {
1084 export type Variables = typeof IssueCollections.variables.Type
1085 export type Result = typeof IssueCollections.result.Type
1087​
1088/** Every operation in issues.graphql. */
1089export const IssuesGraphQLGroup = GraphQLGroup.make(IssueSearch, IssueDetail, IssueComments, IssueLinkMetadata, IssueNodeId, IssueCommentScope, IssueCandidates, IssueTemplates, IssueViewer, IssueCollections)