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

issues.graphql.ts

1,365 lines59.8 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 label for categorizing Issues, Pull Requests, Milestones, or Discussions with a given Repository. */
79export const NodesLabelsNodesLabel = Schema.Struct({
80 /** Identifies the label name. */
81 name: Schema.String,
82 /** Identifies the label color. */
83 color: Schema.String
84})
85export interface NodesLabelsNodesLabel extends Schema.Struct.Type<typeof NodesLabelsNodesLabel.fields> {}
86​
87/** A list of users. */
88export const IssueDetailFieldsAssigneesUserConnection = Schema.Struct({
89 /** Information to aid in pagination. */
90 pageInfo: SearchPageInfoPageInfo,
91 /** A list of nodes. */
92 nodes: Schema.NullOr(Schema.Array(Schema.NullOr(AssigneesNodesUser)))
93})
94export interface IssueDetailFieldsAssigneesUserConnection extends Schema.Struct.Type<typeof IssueDetailFieldsAssigneesUserConnection.fields> {}
95​
96/** The connection type for Label. */
97export const IssueDetailFieldsLabelsLabelConnection = Schema.Struct({
98 /** Information to aid in pagination. */
99 pageInfo: SearchPageInfoPageInfo,
100 /** A list of nodes. */
101 nodes: Schema.NullOr(Schema.Array(Schema.NullOr(NodesLabelsNodesLabel)))
102})
103export interface IssueDetailFieldsLabelsLabelConnection extends Schema.Struct.Type<typeof IssueDetailFieldsLabelsLabelConnection.fields> {}
104​
105/** A user is an individual's account on GitHub that owns repositories and can make new content. */
106export const ReactorsNodesUser = Schema.Struct({
107 __typename: Schema.Literal("User"),
108 /** The username used to login. */
109 login: Schema.String
110})
111export interface ReactorsNodesUser extends Schema.Struct.Type<typeof ReactorsNodesUser.fields> {}
112​
113/** A special type of user which takes actions on behalf of GitHub Apps. */
114export const Bot = Schema.Struct({
115 __typename: Schema.Literal("Bot"),
116 /** The username of the actor. */
117 login: Schema.String
118})
119export interface Bot extends Schema.Struct.Type<typeof Bot.fields> {}
120​
121/** An account on GitHub, with one or more owners, that has repositories, members and teams. */
122export const Organization = Schema.Struct({
123 __typename: Schema.Literal("Organization"),
124 /** The organization's login name. */
125 login: Schema.String
126})
127export interface Organization extends Schema.Struct.Type<typeof Organization.fields> {}
128​
129/** A placeholder user for attribution of imported data on GitHub. */
130export const Mannequin = Schema.Struct({
131 __typename: Schema.Literal("Mannequin"),
132 /** The username of the actor. */
133 login: Schema.String
134})
135export interface Mannequin extends Schema.Struct.Type<typeof Mannequin.fields> {}
136​
137/** Types that can be assigned to reactions. */
138export const ReactorOther = Schema.Struct({
139 __typename: GraphQL.otherTypename<Shared.Typename.Reactor>()(["User", "Bot", "Organization", "Mannequin"])
140})
141export interface ReactorOther extends Schema.Struct.Type<typeof ReactorOther.fields> {}
142​
143/** The connection type for Reactor. */
144export const ReactorConnection = Schema.Struct({
145 /** Identifies the total count of items in the connection. */
146 totalCount: Shared.Int,
147 /** A list of nodes. */
148 nodes: Schema.NullOr(Schema.Array(Schema.NullOr(Schema.Union([
149 ReactorsNodesUser,
150 Bot,
151 Organization,
152 Mannequin,
153 ReactorOther
154 ]))))
155})
156export interface ReactorConnection extends Schema.Struct.Type<typeof ReactorConnection.fields> {}
157​
158/** A group of emoji reactions to a particular piece of content. */
159export const ReactionGroup = Schema.Struct({
160 /** Identifies the emoji reaction. */
161 content: GraphQL.enumLiterals(Shared.ReactionContent.literals),
162 /** Whether or not the authenticated user has left a reaction on the subject. */
163 viewerHasReacted: Schema.Boolean,
164 /** Reactors to the reaction subject with the emotion represented by this reaction group. */
165 reactors: ReactorConnection
166})
167export interface ReactionGroup extends Schema.Struct.Type<typeof ReactionGroup.fields> {}
168​
169/** Information about pagination in a connection. */
170export const CommentsPageInfoPageInfo = Schema.Struct({
171 /** When paginating backwards, are there more items? */
172 hasPreviousPage: Schema.Boolean,
173 /** When paginating backwards, the cursor to continue. */
174 startCursor: Schema.NullOr(Schema.String)
175})
176export interface CommentsPageInfoPageInfo extends Schema.Struct.Type<typeof CommentsPageInfoPageInfo.fields> {}
177​
178/** Represents an object which can take actions on GitHub. Typically a User or Bot. */
179export const Actor = Schema.Struct({
180 __typename: GraphQL.otherTypename<Shared.Typename.Actor>()([]),
181 /** The username of the actor. */
182 login: Schema.String,
183 /** A URL pointing to the actor's public avatar. */
184 avatarUrl: Shared.URI
185})
186export interface Actor extends Schema.Struct.Type<typeof Actor.fields> {}
187​
188/** Represents a comment on an Issue. */
189export const NodesIssueComment = Schema.Struct({
190 /** The Node ID of the IssueComment object */
191 id: Shared.ID,
192 /** The actor who authored the comment. */
193 author: Schema.NullOr(Actor),
194 /** The body as Markdown. */
195 body: Schema.String,
196 /** Identifies the date and time when the object was created. */
197 createdAt: Shared.DateTime,
198 /** The HTTP URL for this issue comment */
199 url: Shared.URI,
200 /** A list of reactions grouped by content left on the subject. */
201 reactionGroups: Schema.NullOr(Schema.Array(ReactionGroup))
202})
203export interface NodesIssueComment extends Schema.Struct.Type<typeof NodesIssueComment.fields> {}
204​
205/** The connection type for IssueComment. */
206export const IssueDetailFieldsCommentsIssueCommentConnection = Schema.Struct({
207 /** Identifies the total count of items in the connection. */
208 totalCount: Shared.Int,
209 /** Information to aid in pagination. */
210 pageInfo: CommentsPageInfoPageInfo,
211 /** A list of nodes. */
212 nodes: Schema.NullOr(Schema.Array(Schema.NullOr(NodesIssueComment)))
213})
214export interface IssueDetailFieldsCommentsIssueCommentConnection extends Schema.Struct.Type<typeof IssueDetailFieldsCommentsIssueCommentConnection.fields> {}
215​
216/** A repository contains the content for a project. */
217export const NodesRepositoryRepository = Schema.Struct({
218 /** The repository's name with owner. */
219 nameWithOwner: Schema.String
220})
221export interface NodesRepositoryRepository extends Schema.Struct.Type<typeof NodesRepositoryRepository.fields> {}
222​
223/** A repository pull request. */
224export const NodesPullRequest = Schema.Struct({
225 /** Identifies the pull request number. */
226 number: Shared.Int,
227 /** Identifies the pull request title. */
228 title: Schema.String,
229 /** The HTTP URL for this pull request. */
230 url: Shared.URI,
231 /** Identifies the state of the pull request. */
232 state: GraphQL.enumLiterals(Shared.PullRequestState.literals),
233 /** Identifies if the pull request is a draft. */
234 isDraft: Schema.Boolean,
235 /** The repository associated with this node. */
236 repository: NodesRepositoryRepository
237})
238export interface NodesPullRequest extends Schema.Struct.Type<typeof NodesPullRequest.fields> {}
239​
240/** The connection type for PullRequest. */
241export const PullRequestConnection = Schema.Struct({
242 /** Information to aid in pagination. */
243 pageInfo: SearchPageInfoPageInfo,
244 /** A list of nodes. */
245 nodes: Schema.NullOr(Schema.Array(Schema.NullOr(NodesPullRequest)))
246})
247export interface PullRequestConnection extends Schema.Struct.Type<typeof PullRequestConnection.fields> {}
248​
249/** Represents a 'closed' event on any `Closable`. */
250export const ClosedEvent = Schema.Struct({
251 __typename: Schema.Literal("ClosedEvent"),
252 /** The Node ID of the ClosedEvent object */
253 id: Shared.ID,
254 /** Identifies the date and time when the object was created. */
255 createdAt: Shared.DateTime,
256 /** Identifies the actor who performed the event. */
257 actor: Schema.NullOr(Actor)
258})
259export interface ClosedEvent extends Schema.Struct.Type<typeof ClosedEvent.fields> {}
260​
261/** Represents a 'reopened' event on any `Closable`. */
262export const ReopenedEvent = Schema.Struct({
263 __typename: Schema.Literal("ReopenedEvent"),
264 /** The Node ID of the ReopenedEvent object */
265 id: Shared.ID,
266 /** Identifies the date and time when the object was created. */
267 createdAt: Shared.DateTime,
268 /** Identifies the actor who performed the event. */
269 actor: Schema.NullOr(Actor)
270})
271export interface ReopenedEvent extends Schema.Struct.Type<typeof ReopenedEvent.fields> {}
272​
273/** A label for categorizing Issues, Pull Requests, Milestones, or Discussions with a given Repository. */
274export const LabelLabel = Schema.Struct({
275 /** Identifies the label name. */
276 name: Schema.String
277})
278export interface LabelLabel extends Schema.Struct.Type<typeof LabelLabel.fields> {}
279​
280/** Represents a 'labeled' event on a given issue or pull request. */
281export const LabeledEvent = Schema.Struct({
282 __typename: Schema.Literal("LabeledEvent"),
283 /** The Node ID of the LabeledEvent object */
284 id: Shared.ID,
285 /** Identifies the date and time when the object was created. */
286 createdAt: Shared.DateTime,
287 /** Identifies the actor who performed the event. */
288 actor: Schema.NullOr(Actor),
289 /** Identifies the label associated with the 'labeled' event. */
290 label: LabelLabel
291})
292export interface LabeledEvent extends Schema.Struct.Type<typeof LabeledEvent.fields> {}
293​
294/** Represents an 'unlabeled' event on a given issue or pull request. */
295export const UnlabeledEvent = Schema.Struct({
296 __typename: Schema.Literal("UnlabeledEvent"),
297 /** The Node ID of the UnlabeledEvent object */
298 id: Shared.ID,
299 /** Identifies the date and time when the object was created. */
300 createdAt: Shared.DateTime,
301 /** Identifies the actor who performed the event. */
302 actor: Schema.NullOr(Actor),
303 /** Identifies the label associated with the 'unlabeled' event. */
304 label: LabelLabel
305})
306export interface UnlabeledEvent extends Schema.Struct.Type<typeof UnlabeledEvent.fields> {}
307​
308/** A user is an individual's account on GitHub that owns repositories and can make new content. */
309export const AssigneeUser = Schema.Struct({
310 __typename: Schema.Literal("User"),
311 /** The username used to login. */
312 login: Schema.String,
313 /** The user's public profile name. */
314 name: Schema.NullOr(Schema.String)
315})
316export interface AssigneeUser extends Schema.Struct.Type<typeof AssigneeUser.fields> {}
317​
318/** Types that can be assigned to issues. */
319export const AssigneeOther = Schema.Struct({
320 __typename: GraphQL.otherTypename<Shared.Typename.Assignee>()(["User", "Bot"])
321})
322export interface AssigneeOther extends Schema.Struct.Type<typeof AssigneeOther.fields> {}
323​
324/** Represents an 'assigned' event on any assignable object. */
325export const AssignedEvent = Schema.Struct({
326 __typename: Schema.Literal("AssignedEvent"),
327 /** The Node ID of the AssignedEvent object */
328 id: Shared.ID,
329 /** Identifies the date and time when the object was created. */
330 createdAt: Shared.DateTime,
331 /** Identifies the actor who performed the event. */
332 actor: Schema.NullOr(Actor),
333 /** Identifies the user or mannequin that was assigned. */
334 assignee: Schema.NullOr(Schema.Union([
335 AssigneeUser,
336 Bot,
337 AssigneeOther
338 ]))
339})
340export interface AssignedEvent extends Schema.Struct.Type<typeof AssignedEvent.fields> {}
341​
342/** Represents an 'unassigned' event on any assignable object. */
343export const UnassignedEvent = Schema.Struct({
344 __typename: Schema.Literal("UnassignedEvent"),
345 /** The Node ID of the UnassignedEvent 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 /** Identifies the user or mannequin that was unassigned. */
352 assignee: Schema.NullOr(Schema.Union([
353 AssigneeUser,
354 Bot,
355 AssigneeOther
356 ]))
357})
358export interface UnassignedEvent extends Schema.Struct.Type<typeof UnassignedEvent.fields> {}
359​
360/** Represents a 'renamed' event on a given issue or pull request */
361export const RenamedTitleEvent = Schema.Struct({
362 __typename: Schema.Literal("RenamedTitleEvent"),
363 /** The Node ID of the RenamedTitleEvent object */
364 id: Shared.ID,
365 /** Identifies the date and time when the object was created. */
366 createdAt: Shared.DateTime,
367 /** Identifies the actor who performed the event. */
368 actor: Schema.NullOr(Actor),
369 /** Identifies the current title of the issue or pull request. */
370 currentTitle: Schema.String
371})
372export interface RenamedTitleEvent extends Schema.Struct.Type<typeof RenamedTitleEvent.fields> {}
373​
374/** A repository pull request. */
375export const SourcePullRequest = Schema.Struct({
376 __typename: Schema.Literal("PullRequest"),
377 /** Identifies the pull request number. */
378 number: Shared.Int,
379 /** Identifies the pull request title. */
380 title: Schema.String,
381 /** The HTTP URL for this pull request. */
382 url: Shared.URI,
383 /** Identifies the state of the pull request. */
384 state: GraphQL.enumLiterals(Shared.PullRequestState.literals),
385 /** Identifies if the pull request is a draft. */
386 isDraft: Schema.Boolean,
387 /** The repository associated with this node. */
388 repository: NodesRepositoryRepository
389})
390export interface SourcePullRequest extends Schema.Struct.Type<typeof SourcePullRequest.fields> {}
391​
392/** An Issue is a place to discuss ideas, enhancements, tasks, and bugs for a project. */
393export const SourceIssue = Schema.Struct({
394 __typename: Schema.Literal("Issue"),
395 /** Identifies the issue number. */
396 number: Shared.Int,
397 /** The HTTP URL for this issue */
398 url: Shared.URI,
399 /** The repository associated with this node. */
400 repository: NodesRepositoryRepository
401})
402export interface SourceIssue extends Schema.Struct.Type<typeof SourceIssue.fields> {}
403​
404/** Any referencable object */
405export const ReferencedSubjectOther = Schema.Struct({
406 __typename: GraphQL.otherTypename<Shared.Typename.ReferencedSubject>()(["PullRequest", "Issue"])
407})
408export interface ReferencedSubjectOther extends Schema.Struct.Type<typeof ReferencedSubjectOther.fields> {}
409​
410/** Represents a mention made by one issue or pull request to another. */
411export const CrossReferencedEvent = Schema.Struct({
412 __typename: Schema.Literal("CrossReferencedEvent"),
413 /** The Node ID of the CrossReferencedEvent object */
414 id: Shared.ID,
415 /** Identifies the date and time when the object was created. */
416 createdAt: Shared.DateTime,
417 /** Identifies the actor who performed the event. */
418 actor: Schema.NullOr(Actor),
419 /** Issue or pull request that made the reference. */
420 source: Schema.Union([
421 SourcePullRequest,
422 SourceIssue,
423 ReferencedSubjectOther
424 ])
425})
426export interface CrossReferencedEvent extends Schema.Struct.Type<typeof CrossReferencedEvent.fields> {}
427​
428/** An item in an issue timeline */
429export const IssueTimelineItemsOther = Schema.Struct({
430 __typename: GraphQL.otherTypename<Shared.Typename.IssueTimelineItems>()(["ClosedEvent", "ReopenedEvent", "LabeledEvent", "UnlabeledEvent", "AssignedEvent", "UnassignedEvent", "RenamedTitleEvent", "CrossReferencedEvent"])
431})
432export interface IssueTimelineItemsOther extends Schema.Struct.Type<typeof IssueTimelineItemsOther.fields> {}
433​
434/** The connection type for IssueTimelineItems. */
435export const IssueTimelineItemsConnection = Schema.Struct({
436 /** A list of nodes. */
437 nodes: Schema.NullOr(Schema.Array(Schema.NullOr(Schema.Union([
438 ClosedEvent,
439 ReopenedEvent,
440 LabeledEvent,
441 UnlabeledEvent,
442 AssignedEvent,
443 UnassignedEvent,
444 RenamedTitleEvent,
445 CrossReferencedEvent,
446 IssueTimelineItemsOther
447 ]))))
448})
449export interface IssueTimelineItemsConnection extends Schema.Struct.Type<typeof IssueTimelineItemsConnection.fields> {}
450​
451/**
452 * `fragment IssueDetailFields on Issue`
453 *
454 * An Issue is a place to discuss ideas, enhancements, tasks, and bugs for a project.
455 */
456export const IssueDetailFields = Schema.Struct({
457 ...IssueRow.fields,
458 /** A list of Users assigned to this object. */
459 assignees: IssueDetailFieldsAssigneesUserConnection,
460 /** A list of labels associated with the object. */
461 labels: Schema.NullOr(IssueDetailFieldsLabelsLabelConnection),
462 /** Identifies the body of the issue. */
463 body: Schema.String,
464 /** Check if the current viewer can update this object. */
465 viewerCanUpdate: Schema.Boolean,
466 /** Indicates if the object can be closed by the viewer. */
467 viewerCanClose: Schema.Boolean,
468 /** Indicates if the object can be reopened by the viewer. */
469 viewerCanReopen: Schema.Boolean,
470 /** A list of reactions grouped by content left on the subject. */
471 reactionGroups: Schema.NullOr(Schema.Array(ReactionGroup)),
472 /** A list of comments associated with the Issue. */
473 comments: IssueDetailFieldsCommentsIssueCommentConnection,
474 /** List of open pull requests referenced from this issue */
475 closedByPullRequestsReferences: Schema.NullOr(PullRequestConnection),
476 /** A list of events, comments, commits, etc. associated with the issue. */
477 timelineItems: IssueTimelineItemsConnection
478})
479export interface IssueDetailFields extends Schema.Struct.Type<typeof IssueDetailFields.fields> {}
480​
481/**
482 * The category of a planning status, which decides whether the issue is open or
483 * closed. Issue statuses are in preview and only available to accounts enrolled in the preview.
484 */
485export const PlanningStatusCategory = Schema.Struct({
486 /**
487 * A stable identifier for the category, such as `new`, `backlog`, `planned`,
488 * `started`, `completed`, `not_planned` or `duplicate`. Clients should expect
489 * new keys to be added.
490 */
491 key: Schema.String,
492 /** The state an issue in this category has. */
493 state: GraphQL.enumLiterals(Shared.IssueState.literals),
494 /** The reason a closed issue in this category was closed, or null when the category is open. */
495 stateReason: Schema.NullOr(GraphQL.enumLiterals(Shared.IssueStateReason.literals))
496})
497export interface PlanningStatusCategory extends Schema.Struct.Type<typeof PlanningStatusCategory.fields> {}
498​
499/**
500 * `fragment PlanningStatusFields on PlanningStatus`
501 *
502 * A planning status an issue can be in. Issue statuses are in preview and only available to accounts enrolled in the preview.
503 */
504export const PlanningStatusFields = Schema.Struct({
505 /** The Node ID of the PlanningStatus object */
506 id: Shared.ID,
507 /** The display name of the planning status. */
508 name: Schema.String,
509 /** The category of the planning status, which decides whether the issue is open or closed. */
510 category: PlanningStatusCategory
511})
512export interface PlanningStatusFields extends Schema.Struct.Type<typeof PlanningStatusFields.fields> {}
513​
514/** A list of users. */
515export const NodesAssigneesUserConnection = Schema.Struct({
516 /** A list of nodes. */
517 nodes: Schema.NullOr(Schema.Array(Schema.NullOr(AssigneesNodesUser)))
518})
519export interface NodesAssigneesUserConnection extends Schema.Struct.Type<typeof NodesAssigneesUserConnection.fields> {}
520​
521/** The connection type for Label. */
522export const NodesLabelsLabelConnection = Schema.Struct({
523 /** A list of nodes. */
524 nodes: Schema.NullOr(Schema.Array(Schema.NullOr(NodesLabelsNodesLabel)))
525})
526export interface NodesLabelsLabelConnection extends Schema.Struct.Type<typeof NodesLabelsLabelConnection.fields> {}
527​
528/** The connection type for IssueComment. */
529export const NodesCommentsIssueCommentConnection = Schema.Struct({
530 /** Identifies the total count of items in the connection. */
531 totalCount: Shared.Int
532})
533export interface NodesCommentsIssueCommentConnection extends Schema.Struct.Type<typeof NodesCommentsIssueCommentConnection.fields> {}
534​
535/** An Issue is a place to discuss ideas, enhancements, tasks, and bugs for a project. */
536export const IssueSearchSearchNodesIssue = Schema.Struct({
537 __typename: Schema.Literal("Issue"),
538 ...IssueRow.fields,
539 /** A list of Users assigned to this object. */
540 assignees: NodesAssigneesUserConnection,
541 /** A list of labels associated with the object. */
542 labels: Schema.NullOr(NodesLabelsLabelConnection),
543 /** A list of comments associated with the Issue. */
544 comments: NodesCommentsIssueCommentConnection
545})
546export interface IssueSearchSearchNodesIssue extends Schema.Struct.Type<typeof IssueSearchSearchNodesIssue.fields> {}
547​
548/** The results of a search. */
549export const SearchResultItemOther = Schema.Struct({
550 __typename: GraphQL.otherTypename<Shared.Typename.SearchResultItem>()(["Issue"])
551})
552export interface SearchResultItemOther extends Schema.Struct.Type<typeof SearchResultItemOther.fields> {}
553​
554/**
555 * A list of results that matched against a search query. Regardless of the number
556 * of matches, a maximum of 1,000 results will be available across all types,
557 * potentially split across many pages.
558 */
559export const IssueSearchSearchSearchResultItemConnection = Schema.Struct({
560 /** Information to aid in pagination. */
561 pageInfo: SearchPageInfoPageInfo,
562 /** A list of nodes. */
563 nodes: Schema.NullOr(Schema.Array(Schema.NullOr(Schema.Union([
564 IssueSearchSearchNodesIssue,
565 SearchResultItemOther
566 ]))))
567})
568export interface IssueSearchSearchSearchResultItemConnection extends Schema.Struct.Type<typeof IssueSearchSearchSearchResultItemConnection.fields> {}
569​
570/** `query IssueSearch` */
571export const IssueSearch = GraphQL.query("IssueSearch", {
572 document: {
573 variables: [
574 { name: "q", body: "String!" },
575 { name: "cursor", body: "String" },
576 { name: "rows", body: "Int!" }
577 ],
578 selections: [
579 { 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}}}}"] }
580 ],
581 fragments: [
582 { name: "IssueRow", body: ["on Issue{number title url state stateReason createdAt updatedAt closedAt author{__typename login avatarUrl...on User{name}}}"] }
583 ]
584 },
585 variables: {
586 q: Schema.String,
587 cursor: Schema.optional(Schema.NullOr(Schema.String)),
588 rows: Shared.Int
589 },
590 result: Schema.Struct({
591 /** Perform a search across resources, returning a maximum of 1,000 results. */
592 search: IssueSearchSearchSearchResultItemConnection
593 })
594})
595export declare namespace IssueSearch {
596 export type Variables = typeof IssueSearch.variables.Type
597 export type Result = typeof IssueSearch.result.Type
599​
600/** A user is an individual's account on GitHub that owns repositories and can make new content. */
601export const ViewerUser = Schema.Struct({
602 /** The username used to login. */
603 login: Schema.String
604})
605export interface ViewerUser extends Schema.Struct.Type<typeof ViewerUser.fields> {}
606​
607/** A repository contains the content for a project. */
608export const IssueDetailRepositoryRepository = Schema.Struct({
609 /** The users permission level on the repository. Will return null if authenticated as an GitHub App. */
610 viewerPermission: Schema.NullOr(GraphQL.enumLiterals(Shared.RepositoryPermission.literals)),
611 /** Returns a single issue from the current repository by number. */
612 issue: Schema.NullOr(IssueDetailFields)
613})
614export interface IssueDetailRepositoryRepository extends Schema.Struct.Type<typeof IssueDetailRepositoryRepository.fields> {}
615​
616/** `query IssueDetail` */
617export const IssueDetail = GraphQL.query("IssueDetail", {
618 document: {
619 variables: [
620 { name: "owner", body: "String!" },
621 { name: "name", body: "String!" },
622 { name: "number", body: "Int!" }
623 ],
624 selections: [
625 { name: "viewer", body: ["{login}"] },
626 { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){viewerPermission issue(number:$", "number", "){...IssueDetailFields}}"] }
627 ],
628 fragments: [
629 { name: "IssueDetailFields", body: ["on Issue{...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}}}}}}}"] },
630 { name: "IssueRow", body: ["on Issue{number title url state stateReason createdAt updatedAt closedAt author{__typename login avatarUrl...on User{name}}}"] },
631 { 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}}}}}"] }
632 ]
633 },
634 variables: {
635 owner: Schema.String,
636 name: Schema.String,
637 number: Shared.Int
638 },
639 result: Schema.Struct({
640 /** The currently authenticated user. */
641 viewer: ViewerUser,
642 /** Lookup a given repository by the owner and repository name. */
643 repository: Schema.NullOr(IssueDetailRepositoryRepository)
644 })
645})
646export declare namespace IssueDetail {
647 export type Variables = typeof IssueDetail.variables.Type
648 export type Result = typeof IssueDetail.result.Type
650​
651/** The connection type for IssueComment. */
652export const IssueCommentsIssueCommentConnection = Schema.Struct({
653 /** Information to aid in pagination. */
654 pageInfo: CommentsPageInfoPageInfo,
655 /** A list of nodes. */
656 nodes: Schema.NullOr(Schema.Array(Schema.NullOr(NodesIssueComment)))
657})
658export interface IssueCommentsIssueCommentConnection extends Schema.Struct.Type<typeof IssueCommentsIssueCommentConnection.fields> {}
659​
660/** An Issue is a place to discuss ideas, enhancements, tasks, and bugs for a project. */
661export const IssueCommentsRepositoryIssueIssue = Schema.Struct({
662 /** A list of comments associated with the Issue. */
663 comments: IssueCommentsIssueCommentConnection
664})
665export interface IssueCommentsRepositoryIssueIssue extends Schema.Struct.Type<typeof IssueCommentsRepositoryIssueIssue.fields> {}
666​
667/** A repository contains the content for a project. */
668export const IssueCommentsRepositoryRepository = Schema.Struct({
669 /** Returns a single issue from the current repository by number. */
670 issue: Schema.NullOr(IssueCommentsRepositoryIssueIssue)
671})
672export interface IssueCommentsRepositoryRepository extends Schema.Struct.Type<typeof IssueCommentsRepositoryRepository.fields> {}
673​
674/** `query IssueComments` */
675export const IssueComments = GraphQL.query("IssueComments", {
676 document: {
677 variables: [
678 { name: "owner", body: "String!" },
679 { name: "name", body: "String!" },
680 { name: "number", body: "Int!" },
681 { name: "cursor", body: "String!" }
682 ],
683 selections: [
684 { name: "viewer", body: ["{login}"] },
685 { 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}}}}"] }
686 ],
687 fragments: [
688 { 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}}}}}"] }
689 ]
690 },
691 variables: {
692 owner: Schema.String,
693 name: Schema.String,
694 number: Shared.Int,
695 cursor: Schema.String
696 },
697 result: Schema.Struct({
698 /** The currently authenticated user. */
699 viewer: ViewerUser,
700 /** Lookup a given repository by the owner and repository name. */
701 repository: Schema.NullOr(IssueCommentsRepositoryRepository)
702 })
703})
704export declare namespace IssueComments {
705 export type Variables = typeof IssueComments.variables.Type
706 export type Result = typeof IssueComments.result.Type
708​
709/** An Issue is a place to discuss ideas, enhancements, tasks, and bugs for a project. */
710export const IssueLinkMetadataRepositoryIssueIssue = Schema.Struct({
711 /** Identifies the issue number. */
712 number: Shared.Int,
713 /** Identifies the issue title. */
714 title: Schema.String,
715 /** The HTTP URL for this issue */
716 url: Shared.URI
717})
718export interface IssueLinkMetadataRepositoryIssueIssue extends Schema.Struct.Type<typeof IssueLinkMetadataRepositoryIssueIssue.fields> {}
719​
720/** A repository contains the content for a project. */
721export const IssueLinkMetadataRepositoryRepository = Schema.Struct({
722 /** Returns a single issue from the current repository by number. */
723 issue: Schema.NullOr(IssueLinkMetadataRepositoryIssueIssue)
724})
725export interface IssueLinkMetadataRepositoryRepository extends Schema.Struct.Type<typeof IssueLinkMetadataRepositoryRepository.fields> {}
726​
727/** `query IssueLinkMetadata` */
728export const IssueLinkMetadata = GraphQL.query("IssueLinkMetadata", {
729 document: {
730 variables: [
731 { name: "owner", body: "String!" },
732 { name: "name", body: "String!" },
733 { name: "number", body: "Int!" }
734 ],
735 selections: [
736 { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){issue(number:$", "number", "){number title url}}"] }
737 ],
738 fragments: []
739 },
740 variables: {
741 owner: Schema.String,
742 name: Schema.String,
743 number: Shared.Int
744 },
745 result: Schema.Struct({
746 /** Lookup a given repository by the owner and repository name. */
747 repository: Schema.NullOr(IssueLinkMetadataRepositoryRepository)
748 })
749})
750export declare namespace IssueLinkMetadata {
751 export type Variables = typeof IssueLinkMetadata.variables.Type
752 export type Result = typeof IssueLinkMetadata.result.Type
754​
755/** An Issue is a place to discuss ideas, enhancements, tasks, and bugs for a project. */
756export const IssueNodeIdRepositoryIssueIssue = Schema.Struct({
757 /** The Node ID of the Issue object */
758 id: Shared.ID,
759 /** Identifies the state of the issue. */
760 state: GraphQL.enumLiterals(Shared.IssueState.literals),
761 /** Identifies the reason for the issue state. */
762 stateReason: Schema.NullOr(GraphQL.enumLiterals(Shared.IssueStateReason.literals))
763})
764export interface IssueNodeIdRepositoryIssueIssue extends Schema.Struct.Type<typeof IssueNodeIdRepositoryIssueIssue.fields> {}
765​
766/** A repository contains the content for a project. */
767export const IssueNodeIdRepositoryRepository = Schema.Struct({
768 /** Returns a single issue from the current repository by number. */
769 issue: Schema.NullOr(IssueNodeIdRepositoryIssueIssue)
770})
771export interface IssueNodeIdRepositoryRepository extends Schema.Struct.Type<typeof IssueNodeIdRepositoryRepository.fields> {}
772​
773/** `query IssueNodeId` */
774export const IssueNodeId = GraphQL.query("IssueNodeId", {
775 document: {
776 variables: [
777 { name: "owner", body: "String!" },
778 { name: "name", body: "String!" },
779 { name: "number", body: "Int!" }
780 ],
781 selections: [
782 { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){issue(number:$", "number", "){id state stateReason}}"] }
783 ],
784 fragments: []
785 },
786 variables: {
787 owner: Schema.String,
788 name: Schema.String,
789 number: Shared.Int
790 },
791 result: Schema.Struct({
792 /** Lookup a given repository by the owner and repository name. */
793 repository: Schema.NullOr(IssueNodeIdRepositoryRepository)
794 })
795})
796export declare namespace IssueNodeId {
797 export type Variables = typeof IssueNodeId.variables.Type
798 export type Result = typeof IssueNodeId.result.Type
800​
801/** An Issue is a place to discuss ideas, enhancements, tasks, and bugs for a project. */
802export const IssueCommentScopeRepositoryIssueIssue = Schema.Struct({
803 /** The Node ID of the Issue object */
804 id: Shared.ID
805})
806export interface IssueCommentScopeRepositoryIssueIssue extends Schema.Struct.Type<typeof IssueCommentScopeRepositoryIssueIssue.fields> {}
807​
808/** A repository contains the content for a project. */
809export const IssueCommentScopeRepositoryRepository = Schema.Struct({
810 /** Returns a single issue from the current repository by number. */
811 issue: Schema.NullOr(IssueCommentScopeRepositoryIssueIssue)
812})
813export interface IssueCommentScopeRepositoryRepository extends Schema.Struct.Type<typeof IssueCommentScopeRepositoryRepository.fields> {}
814​
815/** Represents a comment on an Issue. */
816export const NodeIssueComment = Schema.Struct({
817 __typename: Schema.Literal("IssueComment"),
818 /** Identifies the issue associated with the comment. */
819 issue: IssueCommentScopeRepositoryIssueIssue
820})
821export interface NodeIssueComment extends Schema.Struct.Type<typeof NodeIssueComment.fields> {}
822​
823/** An object with an ID. */
824export const NodeOther = Schema.Struct({
825 __typename: GraphQL.otherTypename<Shared.Typename.Node>()(["IssueComment"])
826})
827export interface NodeOther extends Schema.Struct.Type<typeof NodeOther.fields> {}
828​
829/** `query IssueCommentScope` */
830export const IssueCommentScope = GraphQL.query("IssueCommentScope", {
831 document: {
832 variables: [
833 { name: "owner", body: "String!" },
834 { name: "name", body: "String!" },
835 { name: "number", body: "Int!" },
836 { name: "commentId", body: "ID!" }
837 ],
838 selections: [
839 { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){issue(number:$", "number", "){id}}"] },
840 { name: "node", body: ["(id:$", "commentId", "){__typename...on IssueComment{issue{id}}}"] }
841 ],
842 fragments: []
843 },
844 variables: {
845 owner: Schema.String,
846 name: Schema.String,
847 number: Shared.Int,
848 commentId: Shared.ID
849 },
850 result: Schema.Struct({
851 /** Lookup a given repository by the owner and repository name. */
852 repository: Schema.NullOr(IssueCommentScopeRepositoryRepository),
853 /** Fetches an object given its ID. */
854 node: Schema.NullOr(Schema.Union([
855 NodeIssueComment,
856 NodeOther
857 ]))
858 })
859})
860export declare namespace IssueCommentScope {
861 export type Variables = typeof IssueCommentScope.variables.Type
862 export type Result = typeof IssueCommentScope.result.Type
864​
865/** Information about pagination in a connection. */
866export const LabelsPageInfoPageInfo = Schema.Struct({
867 /** When paginating forwards, are there more items? */
868 hasNextPage: Schema.Boolean
869})
870export interface LabelsPageInfoPageInfo extends Schema.Struct.Type<typeof LabelsPageInfoPageInfo.fields> {}
871​
872/** A label for categorizing Issues, Pull Requests, Milestones, or Discussions with a given Repository. */
873export const RepositoryLabelsNodesLabel = Schema.Struct({
874 /** Identifies the label name. */
875 name: Schema.String,
876 /** Identifies the label color. */
877 color: Schema.String,
878 /** A brief description of this label. */
879 description: Schema.NullOr(Schema.String)
880})
881export interface RepositoryLabelsNodesLabel extends Schema.Struct.Type<typeof RepositoryLabelsNodesLabel.fields> {}
882​
883/** The connection type for Label. */
884export const RepositoryLabelsLabelConnection = Schema.Struct({
885 /** Information to aid in pagination. */
886 pageInfo: LabelsPageInfoPageInfo,
887 /** A list of nodes. */
888 nodes: Schema.NullOr(Schema.Array(Schema.NullOr(RepositoryLabelsNodesLabel)))
889})
890export interface RepositoryLabelsLabelConnection extends Schema.Struct.Type<typeof RepositoryLabelsLabelConnection.fields> {}
891​
892/** A list of users. */
893export const AssignableUsersUserConnection = Schema.Struct({
894 /** Information to aid in pagination. */
895 pageInfo: LabelsPageInfoPageInfo,
896 /** A list of nodes. */
897 nodes: Schema.NullOr(Schema.Array(Schema.NullOr(AssigneesNodesUser)))
898})
899export interface AssignableUsersUserConnection extends Schema.Struct.Type<typeof AssignableUsersUserConnection.fields> {}
900​
901/** A repository contains the content for a project. */
902export const IssueCandidatesRepositoryRepository = Schema.Struct({
903 /** A list of labels associated with the repository. */
904 labels: Schema.NullOr(RepositoryLabelsLabelConnection),
905 /** A list of users that can be assigned to issues in this repository. */
906 assignableUsers: AssignableUsersUserConnection
907})
908export interface IssueCandidatesRepositoryRepository extends Schema.Struct.Type<typeof IssueCandidatesRepositoryRepository.fields> {}
909​
910/** `query IssueCandidates` */
911export const IssueCandidates = GraphQL.query("IssueCandidates", {
912 document: {
913 variables: [
914 { name: "owner", body: "String!" },
915 { name: "name", body: "String!" }
916 ],
917 selections: [
918 { 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}}}"] }
919 ],
920 fragments: []
921 },
922 variables: {
923 owner: Schema.String,
924 name: Schema.String
925 },
926 result: Schema.Struct({
927 /** Lookup a given repository by the owner and repository name. */
928 repository: Schema.NullOr(IssueCandidatesRepositoryRepository)
929 })
930})
931export declare namespace IssueCandidates {
932 export type Variables = typeof IssueCandidates.variables.Type
933 export type Result = typeof IssueCandidates.result.Type
935​
936/** Represents a Git blob. */
937export const Blob = Schema.Struct({
938 __typename: Schema.Literal("Blob"),
939 /** UTF8 text data or null if the Blob is binary */
940 text: Schema.NullOr(Schema.String),
941 /** Indicates whether the contents is truncated */
942 isTruncated: Schema.Boolean
943})
944export interface Blob extends Schema.Struct.Type<typeof Blob.fields> {}
945​
946/** Represents a Git object. */
947export const ObjectGitObjectOther = Schema.Struct({
948 __typename: GraphQL.otherTypename<Shared.Typename.GitObject>()(["Blob"])
949})
950export interface ObjectGitObjectOther extends Schema.Struct.Type<typeof ObjectGitObjectOther.fields> {}
951​
952/** Represents a Git tree entry. */
953export const TreeEntry = Schema.Struct({
954 /** Entry file name. */
955 name: Schema.String,
956 /** Entry file object. */
957 object: Schema.NullOr(Schema.Union([
958 Blob,
959 ObjectGitObjectOther
960 ]))
961})
962export interface TreeEntry extends Schema.Struct.Type<typeof TreeEntry.fields> {}
963​
964/** Represents a Git tree. */
965export const Tree = Schema.Struct({
966 __typename: Schema.Literal("Tree"),
967 /** A list of tree entries. */
968 entries: Schema.NullOr(Schema.Array(TreeEntry))
969})
970export interface Tree extends Schema.Struct.Type<typeof Tree.fields> {}
971​
972/** Represents a Git object. */
973export const TemplateDirectoryGitObjectOther = Schema.Struct({
974 __typename: GraphQL.otherTypename<Shared.Typename.GitObject>()(["Tree"])
975})
976export interface TemplateDirectoryGitObjectOther extends Schema.Struct.Type<typeof TemplateDirectoryGitObjectOther.fields> {}
977​
978/** A list of users. */
979export const IssueTemplatesAssigneesUserConnection = Schema.Struct({
980 /** A list of nodes. */
981 nodes: Schema.NullOr(Schema.Array(Schema.NullOr(ViewerUser)))
982})
983export interface IssueTemplatesAssigneesUserConnection extends Schema.Struct.Type<typeof IssueTemplatesAssigneesUserConnection.fields> {}
984​
985/** The connection type for Label. */
986export const IssueTemplatesLabelsLabelConnection = Schema.Struct({
987 /** A list of nodes. */
988 nodes: Schema.NullOr(Schema.Array(Schema.NullOr(LabelLabel)))
989})
990export interface IssueTemplatesLabelsLabelConnection extends Schema.Struct.Type<typeof IssueTemplatesLabelsLabelConnection.fields> {}
991​
992/** A repository issue template. */
993export const IssueTemplate = Schema.Struct({
994 /** The template filename. */
995 filename: Schema.String,
996 /** The template name. */
997 name: Schema.String,
998 /** The template purpose. */
999 about: Schema.NullOr(Schema.String),
1000 /** The suggested issue title. */
1001 title: Schema.NullOr(Schema.String),
1002 /** The suggested issue body. */
1003 body: Schema.NullOr(Schema.String),
1004 /** The suggested assignees. */
1005 assignees: IssueTemplatesAssigneesUserConnection,
1006 /** The suggested issue labels */
1007 labels: Schema.NullOr(IssueTemplatesLabelsLabelConnection)
1009export interface IssueTemplate extends Schema.Struct.Type<typeof IssueTemplate.fields> {}
1010​
1011/** A repository contains the content for a project. */
1012export const IssueTemplatesRepositoryRepository = Schema.Struct({
1013 /** A Git object in the repository */
1014 templateDirectory: Schema.NullOr(Schema.Union([
1015 Tree,
1016 TemplateDirectoryGitObjectOther
1017 ])),
1018 /** Returns a list of issue templates associated to the repository */
1019 issueTemplates: Schema.NullOr(Schema.Array(IssueTemplate))
1021export interface IssueTemplatesRepositoryRepository extends Schema.Struct.Type<typeof IssueTemplatesRepositoryRepository.fields> {}
1022​
1023/** `query IssueTemplates` */
1024export const IssueTemplates = GraphQL.query("IssueTemplates", {
1025 document: {
1026 variables: [
1027 { name: "owner", body: "String!" },
1028 { name: "name", body: "String!" }
1029 ],
1030 selections: [
1031 { 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}}}}"] }
1032 ],
1033 fragments: []
1034 },
1035 variables: {
1036 owner: Schema.String,
1037 name: Schema.String
1038 },
1039 result: Schema.Struct({
1040 /** Lookup a given repository by the owner and repository name. */
1041 repository: Schema.NullOr(IssueTemplatesRepositoryRepository)
1042 })
1044export declare namespace IssueTemplates {
1045 export type Variables = typeof IssueTemplates.variables.Type
1046 export type Result = typeof IssueTemplates.result.Type
1048​
1049/** `query IssueViewer` */
1050export const IssueViewer = GraphQL.query("IssueViewer", {
1051 document: {
1052 variables: [],
1053 selections: [
1054 { name: "viewer", body: ["{login}"] }
1055 ],
1056 fragments: []
1057 },
1058 result: Schema.Struct({
1059 /** The currently authenticated user. */
1060 viewer: ViewerUser
1061 })
1063export declare namespace IssueViewer {
1064 export type Variables = typeof IssueViewer.variables.Type
1065 export type Result = typeof IssueViewer.result.Type
1067​
1068/** An Issue is a place to discuss ideas, enhancements, tasks, and bugs for a project. */
1069export const IssueCollectionsRepositoryIssueIssue = Schema.Struct({
1070 /** A list of labels associated with the object. */
1071 labels: Schema.optionalKey(Schema.NullOr(IssueDetailFieldsLabelsLabelConnection)),
1072 /** A list of Users assigned to this object. */
1073 assignees: Schema.optionalKey(IssueDetailFieldsAssigneesUserConnection),
1074 /** List of open pull requests referenced from this issue */
1075 closedByPullRequestsReferences: Schema.optionalKey(Schema.NullOr(PullRequestConnection))
1077export interface IssueCollectionsRepositoryIssueIssue extends Schema.Struct.Type<typeof IssueCollectionsRepositoryIssueIssue.fields> {}
1078​
1079/** A repository contains the content for a project. */
1080export const IssueCollectionsRepositoryRepository = Schema.Struct({
1081 /** Returns a single issue from the current repository by number. */
1082 issue: Schema.NullOr(IssueCollectionsRepositoryIssueIssue)
1084export interface IssueCollectionsRepositoryRepository extends Schema.Struct.Type<typeof IssueCollectionsRepositoryRepository.fields> {}
1085​
1086/** `query IssueCollections` */
1087export const IssueCollections = GraphQL.query("IssueCollections", {
1088 document: {
1089 variables: [
1090 { name: "owner", body: "String!" },
1091 { name: "name", body: "String!" },
1092 { name: "number", body: "Int!" },
1093 { name: "labelsCursor", body: "String" },
1094 { name: "assigneesCursor", body: "String" },
1095 { name: "closingPullRequestsCursor", body: "String" },
1096 { name: "withLabels", body: "Boolean!" },
1097 { name: "withAssignees", body: "Boolean!" },
1098 { name: "withClosingPullRequests", body: "Boolean!" }
1099 ],
1100 selections: [
1101 { 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}}}}}"] }
1102 ],
1103 fragments: []
1104 },
1105 variables: {
1106 owner: Schema.String,
1107 name: Schema.String,
1108 number: Shared.Int,
1109 labelsCursor: Schema.optional(Schema.NullOr(Schema.String)),
1110 assigneesCursor: Schema.optional(Schema.NullOr(Schema.String)),
1111 closingPullRequestsCursor: Schema.optional(Schema.NullOr(Schema.String)),
1112 withLabels: Schema.Boolean,
1113 withAssignees: Schema.Boolean,
1114 withClosingPullRequests: Schema.Boolean
1115 },
1116 result: Schema.Struct({
1117 /** Lookup a given repository by the owner and repository name. */
1118 repository: Schema.NullOr(IssueCollectionsRepositoryRepository)
1119 })
1121export declare namespace IssueCollections {
1122 export type Variables = typeof IssueCollections.variables.Type
1123 export type Result = typeof IssueCollections.result.Type
1125​
1126/** An Issue is a place to discuss ideas, enhancements, tasks, and bugs for a project. */
1127export const IssueSearchWithStatusSearchNodesIssue = Schema.Struct({
1128 __typename: Schema.Literal("Issue"),
1129 ...IssueRow.fields,
1130 /**
1131 * The status of this issue, or null when it has none or issue statuses aren't
1132 * available in the repository. Issue statuses are in preview and only available
1133 * to accounts enrolled in the preview.
1134 */
1135 status: Schema.NullOr(PlanningStatusFields),
1136 /** A list of Users assigned to this object. */
1137 assignees: NodesAssigneesUserConnection,
1138 /** A list of labels associated with the object. */
1139 labels: Schema.NullOr(NodesLabelsLabelConnection),
1140 /** A list of comments associated with the Issue. */
1141 comments: NodesCommentsIssueCommentConnection
1143export interface IssueSearchWithStatusSearchNodesIssue extends Schema.Struct.Type<typeof IssueSearchWithStatusSearchNodesIssue.fields> {}
1144​
1145/**
1146 * A list of results that matched against a search query. Regardless of the number
1147 * of matches, a maximum of 1,000 results will be available across all types,
1148 * potentially split across many pages.
1149 */
1150export const IssueSearchWithStatusSearchSearchResultItemConnection = Schema.Struct({
1151 /** Information to aid in pagination. */
1152 pageInfo: SearchPageInfoPageInfo,
1153 /** A list of nodes. */
1154 nodes: Schema.NullOr(Schema.Array(Schema.NullOr(Schema.Union([
1155 IssueSearchWithStatusSearchNodesIssue,
1156 SearchResultItemOther
1157 ]))))
1159export interface IssueSearchWithStatusSearchSearchResultItemConnection extends Schema.Struct.Type<typeof IssueSearchWithStatusSearchSearchResultItemConnection.fields> {}
1160​
1161/** `query IssueSearchWithStatus` */
1162export const IssueSearchWithStatus = GraphQL.query("IssueSearchWithStatus", {
1163 document: {
1164 variables: [
1165 { name: "q", body: "String!" },
1166 { name: "cursor", body: "String" },
1167 { name: "rows", body: "Int!" }
1168 ],
1169 selections: [
1170 { name: "search", body: ["(query:$", "q", " type:ISSUE first:$", "rows", " after:$", "cursor", "){pageInfo{hasNextPage endCursor}nodes{__typename...on Issue{...IssueRow status{...PlanningStatusFields}assignees(first:20){nodes{login name avatarUrl}}labels(first:20){nodes{name color}}comments{totalCount}}}}"] }
1171 ],
1172 fragments: [
1173 { name: "IssueRow", body: ["on Issue{number title url state stateReason createdAt updatedAt closedAt author{__typename login avatarUrl...on User{name}}}"] },
1174 { name: "PlanningStatusFields", body: ["on PlanningStatus{id name category{key state stateReason}}"] }
1176 },
1177 variables: {
1178 q: Schema.String,
1179 cursor: Schema.optional(Schema.NullOr(Schema.String)),
1180 rows: Shared.Int
1181 },
1182 result: Schema.Struct({
1183 /** Perform a search across resources, returning a maximum of 1,000 results. */
1184 search: IssueSearchWithStatusSearchSearchResultItemConnection
1185 })
1187export declare namespace IssueSearchWithStatus {
1188 export type Variables = typeof IssueSearchWithStatus.variables.Type
1189 export type Result = typeof IssueSearchWithStatus.result.Type
1191​
1192/** The connection type for PlanningStatus. */
1193export const PlanningStatusConnection = Schema.Struct({
1194 /** A list of nodes. */
1195 nodes: Schema.NullOr(Schema.Array(Schema.NullOr(PlanningStatusFields)))
1197export interface PlanningStatusConnection extends Schema.Struct.Type<typeof PlanningStatusConnection.fields> {}
1198​
1199/** An Issue is a place to discuss ideas, enhancements, tasks, and bugs for a project. */
1200export const IssueDetailWithStatusRepositoryIssueIssue = Schema.Struct({
1201 ...IssueDetailFields.fields,
1202 /**
1203 * Whether the viewer can set this issue's status. Issue statuses are in preview
1204 * and only available to accounts enrolled in the preview.
1205 */
1206 viewerCanSetStatus: Schema.Boolean,
1207 /**
1208 * The status of this issue, or null when it has none or issue statuses aren't
1209 * available in the repository. Issue statuses are in preview and only available
1210 * to accounts enrolled in the preview.
1211 */
1212 status: Schema.NullOr(PlanningStatusFields)
1214export interface IssueDetailWithStatusRepositoryIssueIssue extends Schema.Struct.Type<typeof IssueDetailWithStatusRepositoryIssueIssue.fields> {}
1215​
1216/** A repository contains the content for a project. */
1217export const IssueDetailWithStatusRepositoryRepository = Schema.Struct({
1218 /** The users permission level on the repository. Will return null if authenticated as an GitHub App. */
1219 viewerPermission: Schema.NullOr(GraphQL.enumLiterals(Shared.RepositoryPermission.literals)),
1220 /**
1221 * The planning statuses issues in this repository can be in, or null when issue
1222 * statuses aren't available for this repository or viewer. Planning statuses are
1223 * returned in display order. Issue statuses are in preview and only available to
1224 * accounts enrolled in the preview.
1225 */
1226 planningStatuses: Schema.NullOr(PlanningStatusConnection),
1227 /** Returns a single issue from the current repository by number. */
1228 issue: Schema.NullOr(IssueDetailWithStatusRepositoryIssueIssue)
1230export interface IssueDetailWithStatusRepositoryRepository extends Schema.Struct.Type<typeof IssueDetailWithStatusRepositoryRepository.fields> {}
1231​
1232/** `query IssueDetailWithStatus` */
1233export const IssueDetailWithStatus = GraphQL.query("IssueDetailWithStatus", {
1234 document: {
1235 variables: [
1236 { name: "owner", body: "String!" },
1237 { name: "name", body: "String!" },
1238 { name: "number", body: "Int!" }
1239 ],
1240 selections: [
1241 { name: "viewer", body: ["{login}"] },
1242 { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){viewerPermission planningStatuses(first:50){nodes{...PlanningStatusFields}}issue(number:$", "number", "){...IssueDetailFields viewerCanSetStatus status{...PlanningStatusFields}}}"] }
1243 ],
1244 fragments: [
1245 { name: "PlanningStatusFields", body: ["on PlanningStatus{id name category{key state stateReason}}"] },
1246 { name: "IssueDetailFields", body: ["on Issue{...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}}}}}}}"] },
1247 { name: "IssueRow", body: ["on Issue{number title url state stateReason createdAt updatedAt closedAt author{__typename login avatarUrl...on User{name}}}"] },
1248 { 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}}}}}"] }
1250 },
1251 variables: {
1252 owner: Schema.String,
1253 name: Schema.String,
1254 number: Shared.Int
1255 },
1256 result: Schema.Struct({
1257 /** The currently authenticated user. */
1258 viewer: ViewerUser,
1259 /** Lookup a given repository by the owner and repository name. */
1260 repository: Schema.NullOr(IssueDetailWithStatusRepositoryRepository)
1261 })
1263export declare namespace IssueDetailWithStatus {
1264 export type Variables = typeof IssueDetailWithStatus.variables.Type
1265 export type Result = typeof IssueDetailWithStatus.result.Type
1267​
1268/** An Issue is a place to discuss ideas, enhancements, tasks, and bugs for a project. */
1269export const IssueStatusesRepositoryIssueIssue = Schema.Struct({
1270 /**
1271 * Whether the viewer can set this issue's status. Issue statuses are in preview
1272 * and only available to accounts enrolled in the preview.
1273 */
1274 viewerCanSetStatus: Schema.Boolean,
1275 /**
1276 * The status of this issue, or null when it has none or issue statuses aren't
1277 * available in the repository. Issue statuses are in preview and only available
1278 * to accounts enrolled in the preview.
1279 */
1280 status: Schema.NullOr(PlanningStatusFields)
1282export interface IssueStatusesRepositoryIssueIssue extends Schema.Struct.Type<typeof IssueStatusesRepositoryIssueIssue.fields> {}
1283​
1284/** A repository contains the content for a project. */
1285export const IssueStatusesRepositoryRepository = Schema.Struct({
1286 /**
1287 * The planning statuses issues in this repository can be in, or null when issue
1288 * statuses aren't available for this repository or viewer. Planning statuses are
1289 * returned in display order. Issue statuses are in preview and only available to
1290 * accounts enrolled in the preview.
1291 */
1292 planningStatuses: Schema.NullOr(PlanningStatusConnection),
1293 /** Returns a single issue from the current repository by number. */
1294 issue: Schema.NullOr(IssueStatusesRepositoryIssueIssue)
1296export interface IssueStatusesRepositoryRepository extends Schema.Struct.Type<typeof IssueStatusesRepositoryRepository.fields> {}
1297​
1298/** `query IssueStatuses` */
1299export const IssueStatuses = GraphQL.query("IssueStatuses", {
1300 document: {
1301 variables: [
1302 { name: "owner", body: "String!" },
1303 { name: "name", body: "String!" },
1304 { name: "number", body: "Int!" }
1305 ],
1306 selections: [
1307 { name: "repository", body: ["(owner:$", "owner", " name:$", "name", "){planningStatuses(first:50){nodes{...PlanningStatusFields}}issue(number:$", "number", "){viewerCanSetStatus status{...PlanningStatusFields}}}"] }
1308 ],
1309 fragments: [
1310 { name: "PlanningStatusFields", body: ["on PlanningStatus{id name category{key state stateReason}}"] }
1312 },
1313 variables: {
1314 owner: Schema.String,
1315 name: Schema.String,
1316 number: Shared.Int
1317 },
1318 result: Schema.Struct({
1319 /** Lookup a given repository by the owner and repository name. */
1320 repository: Schema.NullOr(IssueStatusesRepositoryRepository)
1321 })
1323export declare namespace IssueStatuses {
1324 export type Variables = typeof IssueStatuses.variables.Type
1325 export type Result = typeof IssueStatuses.result.Type
1327​
1328/** Autogenerated return type of SetIssueStatus. */
1329export const SetIssueStatusPayload = Schema.Struct({
1330 /** A unique identifier for the client performing the mutation. */
1331 clientMutationId: Schema.NullOr(Schema.String)
1333export interface SetIssueStatusPayload extends Schema.Struct.Type<typeof SetIssueStatusPayload.fields> {}
1334​
1335/** `mutation SetIssueStatus` */
1336export const SetIssueStatus = GraphQL.mutation("SetIssueStatus", {
1337 document: {
1338 variables: [
1339 { name: "issueId", body: "ID!" },
1340 { name: "statusId", body: "ID!" }
1341 ],
1342 selections: [
1343 { name: "setIssueStatus", body: ["(input:{issueId:$", "issueId", " statusId:$", "statusId", "}){clientMutationId}"] }
1344 ],
1345 fragments: []
1346 },
1347 variables: {
1348 issueId: Shared.ID,
1349 statusId: Shared.ID
1350 },
1351 result: Schema.Struct({
1352 /**
1353 * Sets the status of an issue, closing or reopening it when the status calls for
1354 * it. Issue statuses are in preview and only available to accounts enrolled in the preview.
1355 */
1356 setIssueStatus: Schema.NullOr(SetIssueStatusPayload)
1357 })
1359export declare namespace SetIssueStatus {
1360 export type Variables = typeof SetIssueStatus.variables.Type
1361 export type Result = typeof SetIssueStatus.result.Type
1363​
1364/** Every operation in issues.graphql. */
1365export const IssuesGraphQLGroup = GraphQLGroup.make(IssueSearch, IssueDetail, IssueComments, IssueLinkMetadata, IssueNodeId, IssueCommentScope, IssueCandidates, IssueTemplates, IssueViewer, IssueCollections, IssueSearchWithStatus, IssueDetailWithStatus, IssueStatuses, SetIssueStatus)