Skip to main content

Enterprise Server 3.21 目前作为发布候选版本提供。

Reference documentation for GraphQL schema types in the Issues category.

在本文中

Mutations

addAssigneesToAssignable

Mutation

Adds assignees to an assignable object.

输入 addAssigneesToAssignable 字段

返回 addAssigneesToAssignable 字段

名称说明

assignable (Assignable)

The item that was assigned.

clientMutationId (String)

A unique identifier for the client performing the mutation.

addBlockedBy

Mutation

Adds a 'blocked by' relationship to an issue.

输入 addBlockedBy 字段

返回 addBlockedBy 字段

名称说明

blockingIssue (Issue)

The issue that is blocking the given issue.

clientMutationId (String)

A unique identifier for the client performing the mutation.

issue (Issue)

The issue that is blocked.

addComment

Mutation

Adds a comment to an Issue or Pull Request.

输入 addComment 字段

返回 addComment 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

commentEdge (IssueCommentEdge)

The edge from the subject's comment connection.

subject (Node)

The subject.

timelineEdge (IssueTimelineItemEdge)

The edge from the subject's timeline connection.

addLabelsToLabelable

Mutation

Adds labels to a labelable object.

输入 addLabelsToLabelable 字段

返回 addLabelsToLabelable 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

labelable (Labelable)

The item that was labeled.

addSubIssue

Mutation

Adds a sub-issue to a given issue.

输入 addSubIssue 字段

返回 addSubIssue 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

issue (Issue)

The parent issue that the sub-issue was added to.

subIssue (Issue)

The sub-issue of the parent.

clearLabelsFromLabelable

Mutation

Clears all labels from a labelable object.

输入 clearLabelsFromLabelable 字段

返回 clearLabelsFromLabelable 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

labelable (Labelable)

The item that was unlabeled.

closeIssue

Mutation

Close an issue.

输入 closeIssue 字段

返回 closeIssue 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

issue (Issue)

The issue that was closed.

createIssue

Mutation

Creates a new issue.

输入 createIssue 字段

返回 createIssue 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

issue (Issue)

The new issue.

createIssueField

Mutation

Creates a new issue field.

输入 createIssueField 字段

返回 createIssueField 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

issueField (IssueFields)

The newly created issue field.

createIssueFieldValue

Mutation

Creates a new issue field value for an issue.

输入 createIssueFieldValue 字段

返回 createIssueFieldValue 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

issue (Issue)

The issue object.

issueFieldValue (IssueFieldValue)

The newly created issue field value.

createIssueType

Mutation

Creates a new issue type.

输入 createIssueType 字段

返回 createIssueType 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

issueType (IssueType)

The newly created issue type.

createLabel

Mutation

Creates a new label.

输入 createLabel 字段

返回 createLabel 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

label (Label)

The new label.

createLinkedBranch

Mutation

Create a branch linked to an issue.

输入 createLinkedBranch 字段

返回 createLinkedBranch 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

issue (Issue)

The issue that was linked to.

linkedBranch (LinkedBranch)

The new branch issue reference.

deleteIssue

Mutation

Deletes an Issue object.

输入 deleteIssue 字段

返回 deleteIssue 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

repository (Repository)

The repository the issue belonged to.

deleteIssueComment

Mutation

Deletes an IssueComment object.

输入 deleteIssueComment 字段

返回 deleteIssueComment 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

deleteIssueField

Mutation

Deletes an issue field.

输入 deleteIssueField 字段

返回 deleteIssueField 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

issueField (IssueFields)

The deleted issue field.

deleteIssueFieldValue

Mutation

Deletes an issue field value from an issue.

输入 deleteIssueFieldValue 字段

返回 deleteIssueFieldValue 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

issue (Issue)

The issue object.

success (Boolean)

Whether the field value was successfully deleted.

deleteIssueType

Mutation

Delete an issue type.

输入 deleteIssueType 字段

返回 deleteIssueType 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

deletedIssueTypeId (ID)

The ID of the deleted issue type.

deleteLabel

Mutation

Deletes a label.

输入 deleteLabel 字段

返回 deleteLabel 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

deleteLinkedBranch

Mutation

Unlink a branch from an issue.

输入 deleteLinkedBranch 字段

返回 deleteLinkedBranch 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

issue (Issue)

The issue the linked branch was unlinked from.

lockLockable

Mutation

Lock a lockable object.

输入 lockLockable 字段

返回 lockLockable 字段

名称说明

actor (Actor)

Identifies the actor who performed the event.

clientMutationId (String)

A unique identifier for the client performing the mutation.

lockedRecord (Lockable)

The item that was locked.

minimizeComment

Mutation

Minimizes a comment on an Issue, Commit, Pull Request, or Gist.

输入 minimizeComment 字段

返回 minimizeComment 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

minimizedComment (Minimizable)

The comment that was minimized.

pinIssue

Mutation

Pin an issue to a repository.

输入 pinIssue 字段

返回 pinIssue 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

issue (Issue)

The issue that was pinned.

pinIssueComment

Mutation

Pins an Issue Comment.

输入 pinIssueComment 字段

返回 pinIssueComment 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

issueComment (IssueComment)

The Issue Comment that was pinned.

removeAssigneesFromAssignable

Mutation

Removes assignees from an assignable object.

输入 removeAssigneesFromAssignable 字段

返回 removeAssigneesFromAssignable 字段

名称说明

assignable (Assignable)

The item that was unassigned.

clientMutationId (String)

A unique identifier for the client performing the mutation.

removeBlockedBy

Mutation

Removes a 'blocked by' relationship from an issue.

输入 removeBlockedBy 字段

返回 removeBlockedBy 字段

名称说明

blockingIssue (Issue)

The previously blocking issue.

clientMutationId (String)

A unique identifier for the client performing the mutation.

issue (Issue)

The previously blocked issue.

removeLabelsFromLabelable

Mutation

Removes labels from a Labelable object.

输入 removeLabelsFromLabelable 字段

返回 removeLabelsFromLabelable 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

labelable (Labelable)

The Labelable the labels were removed from.

removeSubIssue

Mutation

Removes a sub-issue from a given issue.

输入 removeSubIssue 字段

返回 removeSubIssue 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

issue (Issue)

The parent of the sub-issue.

subIssue (Issue)

The sub-issue of the parent.

reopenIssue

Mutation

Reopen a issue.

输入 reopenIssue 字段

返回 reopenIssue 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

issue (Issue)

The issue that was opened.

replaceActorsForAssignable

Mutation

Replaces all actors for assignable object.

输入 replaceActorsForAssignable 字段

返回 replaceActorsForAssignable 字段

名称说明

assignable (Assignable)

The item that was assigned.

clientMutationId (String)

A unique identifier for the client performing the mutation.

reprioritizeSubIssue

Mutation

Reprioritizes a sub-issue to a different position in the parent list.

输入 reprioritizeSubIssue 字段

返回 reprioritizeSubIssue 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

issue (Issue)

The parent issue that the sub-issue was reprioritized in.

setIssueFieldValue

Mutation

Sets the value of an IssueFieldValue.

输入 setIssueFieldValue 字段

返回 setIssueFieldValue 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

issue (Issue)

The issue where the field values were set.

issueFieldValues ([IssueFieldValue!])

The issue field values that were created or updated.

transferIssue

Mutation

Transfer an issue to a different repository.

输入 transferIssue 字段

返回 transferIssue 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

issue (Issue)

The issue that was transferred.

unlockLockable

Mutation

Unlock a lockable object.

输入 unlockLockable 字段

返回 unlockLockable 字段

名称说明

actor (Actor)

Identifies the actor who performed the event.

clientMutationId (String)

A unique identifier for the client performing the mutation.

unlockedRecord (Lockable)

The item that was unlocked.

unmarkIssueAsDuplicate

Mutation

Unmark an issue as a duplicate of another issue.

输入 unmarkIssueAsDuplicate 字段

返回 unmarkIssueAsDuplicate 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

duplicate (IssueOrPullRequest)

The issue or pull request that was marked as a duplicate.

unminimizeComment

Mutation

Unminimizes a comment on an Issue, Commit, Pull Request, or Gist.

输入 unminimizeComment 字段

返回 unminimizeComment 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

unminimizedComment (Minimizable)

The comment that was unminimized.

unpinIssue

Mutation

Unpin a pinned issue from a repository.

输入 unpinIssue 字段

返回 unpinIssue 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

id (ID)

The id of the pinned issue that was unpinned.

issue (Issue)

The issue that was unpinned.

unpinIssueComment

Mutation

Unpins an Issue Comment.

输入 unpinIssueComment 字段

返回 unpinIssueComment 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

issueComment (IssueComment)

The Issue Comment that was unpinned.

updateIssue

Mutation

Updates an Issue.

输入 updateIssue 字段

返回 updateIssue 字段

名称说明

actor (Actor)

Identifies the actor who performed the event.

clientMutationId (String)

A unique identifier for the client performing the mutation.

issue (Issue)

The issue.

updateIssueComment

Mutation

Updates an IssueComment object.

输入 updateIssueComment 字段

返回 updateIssueComment 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

issueComment (IssueComment)

The updated comment.

updateIssueField

Mutation

Updates an issue field.

输入 updateIssueField 字段

返回 updateIssueField 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

issueField (IssueFields)

The updated issue field.

updateIssueFieldValue

Mutation

Updates an existing issue field value for an issue.

输入 updateIssueFieldValue 字段

返回 updateIssueFieldValue 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

issue (Issue)

The issue object.

issueFieldValue (IssueFieldValue)

The updated issue field value.

updateIssueIssueType

Mutation

Updates the issue type on an issue.

输入 updateIssueIssueType 字段

返回 updateIssueIssueType 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

issue (Issue)

The updated issue.

updateIssueType

Mutation

Update an issue type.

输入 updateIssueType 字段

返回 updateIssueType 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

issueType (IssueType)

The updated issue type.

updateLabel

Mutation

Updates an existing label.

输入 updateLabel 字段

返回 updateLabel 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

label (Label)

The updated label.

Objects

AssignedEvent

Object

Represents anassignedevent on any assignable object.

AssignedEvent 实现

AssignedEvent 字段

名称说明

actor (Actor)

Identifies the actor who performed the event.

assignable (Assignable!)

Identifies the assignable associated with the event.

assignee (Assignee)

Identifies the user or mannequin that was assigned.

createdAt (DateTime!)

Identifies the date and time when the object was created.

id (ID!)

The Node ID of the AssignedEvent object.

user (User)

Identifies the user who was assigned.

警告

user is deprecated.

Assignees can now be mannequins. Use the assignee field instead. Removal on 2020-01-01 UTC.

AssigneeConnection

Object

The connection type for Assignee.

AssigneeConnection 字段

名称说明

edges ([AssigneeEdge])

A list of edges.

nodes ([Assignee])

A list of nodes.

pageInfo (PageInfo!)

Information to aid in pagination.

totalCount (Int!)

Identifies the total count of items in the connection.

AssigneeEdge

Object

An edge in a connection.

AssigneeEdge 字段

名称说明

cursor (String!)

A cursor for use in pagination.

node (Assignee)

The item at the end of the edge.

BlockedByAddedEvent

Object

Represents ablocked_by_addedevent on a given issue.

BlockedByAddedEvent 实现

BlockedByAddedEvent 字段

名称说明

actor (Actor)

Identifies the actor who performed the event.

blockingIssue (Issue)

The blocking issue that was added.

createdAt (DateTime!)

Identifies the date and time when the object was created.

id (ID!)

The Node ID of the BlockedByAddedEvent object.

BlockedByRemovedEvent

Object

Represents ablocked_by_removedevent on a given issue.

BlockedByRemovedEvent 实现

BlockedByRemovedEvent 字段

名称说明

actor (Actor)

Identifies the actor who performed the event.

blockingIssue (Issue)

The blocking issue that was removed.

createdAt (DateTime!)

Identifies the date and time when the object was created.

id (ID!)

The Node ID of the BlockedByRemovedEvent object.

BlockingAddedEvent

Object

Represents ablocking_addedevent on a given issue.

BlockingAddedEvent 实现

BlockingAddedEvent 字段

名称说明

actor (Actor)

Identifies the actor who performed the event.

blockedIssue (Issue)

The blocked issue that was added.

createdAt (DateTime!)

Identifies the date and time when the object was created.

id (ID!)

The Node ID of the BlockingAddedEvent object.

BlockingRemovedEvent

Object

Represents ablocking_removedevent on a given issue.

BlockingRemovedEvent 实现

BlockingRemovedEvent 字段

名称说明

actor (Actor)

Identifies the actor who performed the event.

blockedIssue (Issue)

The blocked issue that was removed.

createdAt (DateTime!)

Identifies the date and time when the object was created.

id (ID!)

The Node ID of the BlockingRemovedEvent object.

ClosedEvent

Object

Represents aclosedevent on any Closable.

ClosedEvent 实现

ClosedEvent 字段

名称说明

actor (Actor)

Identifies the actor who performed the event.

closable (Closable!)

Object that was closed.

closer (Closer)

Object which triggered the creation of this event.

createdAt (DateTime!)

Identifies the date and time when the object was created.

duplicateOf (IssueOrPullRequest)

The issue or pull request that this issue was marked as a duplicate of.

id (ID!)

The Node ID of the ClosedEvent object.

resourcePath (URI!)

The HTTP path for this closed event.

stateReason (IssueStateReason)

The reason the issue state was changed to closed.

url (URI!)

The HTTP URL for this closed event.

CommentDeletedEvent

Object

Represents acomment_deletedevent on a given issue or pull request.

CommentDeletedEvent 实现

CommentDeletedEvent 字段

名称说明

actor (Actor)

Identifies the actor who performed the event.

createdAt (DateTime!)

Identifies the date and time when the object was created.

databaseId (Int)

Identifies the primary key from the database.

deletedCommentAuthor (Actor)

The user who authored the deleted comment.

id (ID!)

The Node ID of the CommentDeletedEvent object.

ConnectedEvent

Object

Represents aconnectedevent on a given issue or pull request.

ConnectedEvent 实现

ConnectedEvent 字段

名称说明

actor (Actor)

Identifies the actor who performed the event.

createdAt (DateTime!)

Identifies the date and time when the object was created.

id (ID!)

The Node ID of the ConnectedEvent object.

isCrossRepository (Boolean!)

Reference originated in a different repository.

source (ReferencedSubject!)

Issue or pull request that made the reference.

subject (ReferencedSubject!)

Issue or pull request which was connected.

ConvertedNoteToIssueEvent

Object

Represents aconverted_note_to_issueevent on a given issue or pull request.

ConvertedNoteToIssueEvent 实现

ConvertedNoteToIssueEvent 字段

名称说明

actor (Actor)

Identifies the actor who performed the event.

createdAt (DateTime!)

Identifies the date and time when the object was created.

databaseId (Int)

Identifies the primary key from the database.

id (ID!)

The Node ID of the ConvertedNoteToIssueEvent object.

project (Project)

Project referenced by event.

警告

project is deprecated.

Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC.

projectCard (ProjectCard)

Project card referenced by this project event.

警告

projectCard is deprecated.

Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC.

projectColumnName (String!)

Column name referenced by this project event.

ConvertedToDiscussionEvent

Object

Represents aconverted_to_discussionevent on a given issue.

ConvertedToDiscussionEvent 实现

ConvertedToDiscussionEvent 字段

名称说明

actor (Actor)

Identifies the actor who performed the event.

createdAt (DateTime!)

Identifies the date and time when the object was created.

discussion (Discussion)

The discussion that the issue was converted into.

id (ID!)

The Node ID of the ConvertedToDiscussionEvent object.

CrossReferencedEvent

Object

Represents a mention made by one issue or pull request to another.

CrossReferencedEvent 实现

CrossReferencedEvent 字段

名称说明

actor (Actor)

Identifies the actor who performed the event.

createdAt (DateTime!)

Identifies the date and time when the object was created.

id (ID!)

The Node ID of the CrossReferencedEvent object.

isCrossRepository (Boolean!)

Reference originated in a different repository.

referencedAt (DateTime!)

Identifies when the reference was made.

resourcePath (URI!)

The HTTP path for this pull request.

source (ReferencedSubject!)

Issue or pull request that made the reference.

target (ReferencedSubject!)

Issue or pull request to which the reference was made.

url (URI!)

The HTTP URL for this pull request.

willCloseTarget (Boolean!)

Checks if the target will be closed when the source is merged.

DemilestonedEvent

Object

Represents ademilestonedevent on a given issue or pull request.

DemilestonedEvent 实现

DemilestonedEvent 字段

名称说明

actor (Actor)

Identifies the actor who performed the event.

createdAt (DateTime!)

Identifies the date and time when the object was created.

id (ID!)

The Node ID of the DemilestonedEvent object.

milestoneTitle (String!)

Identifies the milestone title associated with thedemilestonedevent.

subject (MilestoneItem!)

Object referenced by event.

DisconnectedEvent

Object

Represents adisconnectedevent on a given issue or pull request.

DisconnectedEvent 实现

DisconnectedEvent 字段

名称说明

actor (Actor)

Identifies the actor who performed the event.

createdAt (DateTime!)

Identifies the date and time when the object was created.

id (ID!)

The Node ID of the DisconnectedEvent object.

isCrossRepository (Boolean!)

Reference originated in a different repository.

source (ReferencedSubject!)

Issue or pull request from which the issue was disconnected.

subject (ReferencedSubject!)

Issue or pull request which was disconnected.

Issue

Object

An Issue is a place to discuss ideas, enhancements, tasks, and bugs for a project.

Issue 实现

Issue 字段

名称说明

activeLockReason (LockReason)

Reason that the conversation was locked.

assignedActors (AssigneeConnection!)

A list of actors assigned to this object.

assignedActors 的参数

  • after (String)

    Returns the elements in the list that come after the specified cursor.

  • before (String)

    Returns the elements in the list that come before the specified cursor.

  • first (Int)

    Returns the first n elements from the list.

  • last (Int)

    Returns the last n elements from the list.

assignees (UserConnection!)

A list of Users assigned to this object.

assignees 的参数

  • after (String)

    Returns the elements in the list that come after the specified cursor.

  • before (String)

    Returns the elements in the list that come before the specified cursor.

  • first (Int)

    Returns the first n elements from the list.

  • last (Int)

    Returns the last n elements from the list.

author (Actor)

The actor who authored the comment.

authorAssociation (CommentAuthorAssociation!)

Author's association with the subject of the comment.

blockedBy (IssueConnection!)

A list of issues that are blocking this issue.

blockedBy 的参数

  • after (String)

    Returns the elements in the list that come after the specified cursor.

  • before (String)

    Returns the elements in the list that come before the specified cursor.

  • first (Int)

    Returns the first n elements from the list.

  • last (Int)

    Returns the last n elements from the list.

blocking (IssueConnection!)

A list of issues that this issue is blocking.

blocking 的参数

  • after (String)

    Returns the elements in the list that come after the specified cursor.

  • before (String)

    Returns the elements in the list that come before the specified cursor.

  • first (Int)

    Returns the first n elements from the list.

  • last (Int)

    Returns the last n elements from the list.

body (String!)

Identifies the body of the issue.

bodyHTML (HTML!)

The body rendered to HTML.

bodyResourcePath (URI!)

The http path for this issue body.

bodyText (String!)

Identifies the body of the issue rendered to text.

bodyUrl (URI!)

The http URL for this issue body.

closed (Boolean!)

Indicates if the object is closed (definition of closed may depend on type).

closedAt (DateTime)

Identifies the date and time when the object was closed.

closedByPullRequestsReferences (PullRequestConnection)

List of open pull requests referenced from this issue.

closedByPullRequestsReferences 的参数

  • after (String)

    Returns the elements in the list that come after the specified cursor.

  • before (String)

    Returns the elements in the list that come before the specified cursor.

  • first (Int)

    Returns the first n elements from the list.

  • includeClosedPrs (Boolean)

    Include closed PRs in results.

    The default value is false.

  • last (Int)

    Returns the last n elements from the list.

  • orderByState (Boolean)

    Return results ordered by state.

    The default value is false.

  • userLinkedOnly (Boolean)

    Return only manually linked PRs.

    The default value is false.

comments (IssueCommentConnection!)

A list of comments associated with the Issue.

comments 的参数

  • after (String)

    Returns the elements in the list that come after the specified cursor.

  • before (String)

    Returns the elements in the list that come before the specified cursor.

  • first (Int)

    Returns the first n elements from the list.

  • last (Int)

    Returns the last n elements from the list.

  • orderBy (IssueCommentOrder)

    Ordering options for issue comments returned from the connection.

createdAt (DateTime!)

Identifies the date and time when the object was created.

createdViaEmail (Boolean!)

Check if this comment was created via an email reply.

databaseId (Int)

Identifies the primary key from the database.

duplicateOf (Issue)

A reference to the original issue that this issue has been marked as a duplicate of.

editor (Actor)

The actor who edited the comment.

fullDatabaseId (BigInt)

Identifies the primary key from the database as a BigInt.

hovercard (Hovercard!)

The hovercard information for this issue.

hovercard 的参数

  • includeNotificationContexts (Boolean)

    Whether or not to include notification contexts.

    The default value is true.

id (ID!)

The Node ID of the Issue object.

includesCreatedEdit (Boolean!)

Check if this comment was edited and includes an edit with the creation data.

isPinned (Boolean)

Indicates whether or not this issue is currently pinned to the repository issues list.

isReadByViewer (Boolean)

Is this issue read by the viewer.

issueDependenciesSummary (IssueDependenciesSummary!)

Summary of the state of an issue's dependencies.

issueFieldValues (IssueFieldValueConnection)

Fields that are set on this issue.

issueFieldValues 的参数

  • after (String)

    Returns the elements in the list that come after the specified cursor.

  • before (String)

    Returns the elements in the list that come before the specified cursor.

  • first (Int)

    Returns the first n elements from the list.

  • last (Int)

    Returns the last n elements from the list.

issueType (IssueType)

The issue type for this Issue.

labels (LabelConnection)

A list of labels associated with the object.

labels 的参数

  • after (String)

    Returns the elements in the list that come after the specified cursor.

  • before (String)

    Returns the elements in the list that come before the specified cursor.

  • first (Int)

    Returns the first n elements from the list.

  • last (Int)

    Returns the last n elements from the list.

  • orderBy (LabelOrder)

    Ordering options for labels returned from the connection.

lastEditedAt (DateTime)

The moment the editor made the last edit.

linkedBranches (LinkedBranchConnection!)

Branches linked to this issue.

linkedBranches 的参数

  • after (String)

    Returns the elements in the list that come after the specified cursor.

  • before (String)

    Returns the elements in the list that come before the specified cursor.

  • first (Int)

    Returns the first n elements from the list.

  • last (Int)

    Returns the last n elements from the list.

locked (Boolean!)

true if the object is locked.

milestone (Milestone)

Identifies the milestone associated with the issue.

number (Int!)

Identifies the issue number.

parent (Issue)

The parent entity of the issue.

participants (UserConnection!)

A list of Users that are participating in the Issue conversation.

participants 的参数

  • after (String)

    Returns the elements in the list that come after the specified cursor.

  • before (String)

    Returns the elements in the list that come before the specified cursor.

  • first (Int)

    Returns the first n elements from the list.

  • last (Int)

    Returns the last n elements from the list.

pinnedIssueComment (PinnedIssueComment)

The pinned comment for this issue.

projectCards (ProjectCardConnection!)

List of project cards associated with this issue.

警告

projectCards is deprecated.

Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC.

projectCards 的参数

  • after (String)

    Returns the elements in the list that come after the specified cursor.

  • before (String)

    Returns the elements in the list that come before the specified cursor.

  • first (Int)

    Returns the first n elements from the list.

  • last (Int)

    Returns the last n elements from the list.

projectItems (ProjectV2ItemConnection)

List of project items associated with this issue.

projectItems 的参数

  • after (String)

    Returns the elements in the list that come after the specified cursor.

  • before (String)

    Returns the elements in the list that come before the specified cursor.

  • first (Int)

    Returns the first n elements from the list.

  • includeArchived (Boolean)

    Include archived items.

    The default value is true.

  • last (Int)

    Returns the last n elements from the list.

projectV2 (ProjectV2)

Find a project by number.

projectV2 的参数

  • number (Int!)

    The project number.

projectsV2 (ProjectV2Connection!)

A list of projects under the owner.

projectsV2 的参数

  • after (String)

    Returns the elements in the list that come after the specified cursor.

  • before (String)

    Returns the elements in the list that come before the specified cursor.

  • first (Int)

    Returns the first n elements from the list.

  • last (Int)

    Returns the last n elements from the list.

  • query (String)

    A project to search for under the owner.

publishedAt (DateTime)

Identifies when the comment was published at.

reactionGroups ([ReactionGroup!])

A list of reactions grouped by content left on the subject.

reactions (ReactionConnection!)

A list of Reactions left on the Issue.

reactions 的参数

  • after (String)

    Returns the elements in the list that come after the specified cursor.

  • before (String)

    Returns the elements in the list that come before the specified cursor.

  • first (Int)

    Returns the first n elements from the list.

  • last (Int)

    Returns the last n elements from the list.

  • orderBy (ReactionOrder)

    Allows specifying the order in which reactions are returned.

repository (Repository!)

The repository associated with this node.

resourcePath (URI!)

The HTTP path for this issue.

state (IssueState!)

Identifies the state of the issue.

stateReason (IssueStateReason)

Identifies the reason for the issue state.

stateReason 的参数

  • enableDuplicate (Boolean)

    Whether or not to return state reason for duplicates

    Upcoming Change on 2025-10-01 UTC Description: enableDuplicate will be removed. Reason: The state reason for duplicate issue is now returned by default.

    The default value is false.

subIssues (IssueConnection!)

A list of sub-issues associated with the Issue.

subIssues 的参数

  • after (String)

    Returns the elements in the list that come after the specified cursor.

  • before (String)

    Returns the elements in the list that come before the specified cursor.

  • first (Int)

    Returns the first n elements from the list.

  • last (Int)

    Returns the last n elements from the list.

subIssuesSummary (SubIssuesSummary!)

Summary of the state of an issue's sub-issues.

suggestedActors (AssigneeConnection!)

A list of suggested actors to assign to this object.

suggestedActors 的参数

  • after (String)

    Returns the elements in the list that come after the specified cursor.

  • before (String)

    Returns the elements in the list that come before the specified cursor.

  • first (Int)

    Returns the first n elements from the list.

  • last (Int)

    Returns the last n elements from the list.

  • query (String)

    If provided, searches users by login or profile name.

timeline (IssueTimelineConnection!)

A list of events, comments, commits, etc. associated with the issue.

警告

timeline is deprecated.

timeline will be removed Use Issue.timelineItems instead. Removal on 2020-10-01 UTC.

timeline 的参数

  • after (String)

    Returns the elements in the list that come after the specified cursor.

  • before (String)

    Returns the elements in the list that come before the specified cursor.

  • first (Int)

    Returns the first n elements from the list.

  • last (Int)

    Returns the last n elements from the list.

  • since (DateTime)

    Allows filtering timeline events by a since timestamp.

timelineItems (IssueTimelineItemsConnection!)

A list of events, comments, commits, etc. associated with the issue.

timelineItems 的参数

  • after (String)

    Returns the elements in the list that come after the specified cursor.

  • before (String)

    Returns the elements in the list that come before the specified cursor.

  • first (Int)

    Returns the first n elements from the list.

  • last (Int)

    Returns the last n elements from the list.

  • since (DateTime)

    Filter timeline items by a since timestamp.

  • skip (Int)

    Skips the first n elements in the list.

title (String!)

Identifies the issue title.

titleHTML (String!)

Identifies the issue title rendered to HTML.

updatedAt (DateTime!)

Identifies the date and time when the object was last updated.

url (URI!)

The HTTP URL for this issue.

userContentEdits (UserContentEditConnection)

A list of edits to this content.

userContentEdits 的参数

  • after (String)

    Returns the elements in the list that come after the specified cursor.

  • before (String)

    Returns the elements in the list that come before the specified cursor.

  • first (Int)

    Returns the first n elements from the list.

  • last (Int)

    Returns the last n elements from the list.

viewerCanClose (Boolean!)

Indicates if the object can be closed by the viewer.

viewerCanDelete (Boolean!)

Check if the current viewer can delete this object.

viewerCanLabel (Boolean!)

Indicates if the viewer can edit labels for this object.

viewerCanReact (Boolean!)

Can user react to this subject.

viewerCanReopen (Boolean!)

Indicates if the object can be reopened by the viewer.

viewerCanSetFields (Boolean)

Check if the current viewer can set fields on the issue.

viewerCanSubscribe (Boolean!)

Check if the viewer is able to change their subscription status for the repository.

viewerCanUpdate (Boolean!)

Check if the current viewer can update this object.

viewerCannotUpdateReasons ([CommentCannotUpdateReason!]!)

Reasons why the current viewer can not update this comment.

viewerDidAuthor (Boolean!)

Did the viewer author this comment.

viewerSubscription (SubscriptionState)

Identifies if the viewer is watching, not watching, or ignoring the subscribable entity.

viewerThreadSubscriptionFormAction (ThreadSubscriptionFormAction)

Identifies the viewer's thread subscription form action.

viewerThreadSubscriptionStatus (ThreadSubscriptionState)

Identifies the viewer's thread subscription status.

IssueComment

Object

Represents a comment on an Issue.

IssueComment 实现

IssueComment 字段

名称说明

author (Actor)

The actor who authored the comment.

authorAssociation (CommentAuthorAssociation!)

Author's association with the subject of the comment.

body (String!)

The body as Markdown.

bodyHTML (HTML!)

The body rendered to HTML.

bodyText (String!)

The body rendered to text.

createdAt (DateTime!)

Identifies the date and time when the object was created.

createdViaEmail (Boolean!)

Check if this comment was created via an email reply.

databaseId (Int)

Identifies the primary key from the database.

editor (Actor)

The actor who edited the comment.

fullDatabaseId (BigInt)

Identifies the primary key from the database as a BigInt.

id (ID!)

The Node ID of the IssueComment object.

includesCreatedEdit (Boolean!)

Check if this comment was edited and includes an edit with the creation data.

isMinimized (Boolean!)

Returns whether or not a comment has been minimized.

isPinned (Boolean)

Indicates whether or not this entity is currently pinned.

issue (Issue!)

Identifies the issue associated with the comment.

lastEditedAt (DateTime)

The moment the editor made the last edit.

minimizedReason (String)

Returns why the comment was minimized. One of abuse, off-topic, outdated, resolved, duplicate and spam. Note that the case and formatting of these values differs from the inputs to the MinimizeComment mutation.

pinnedAt (DateTime)

Identifies the date and time when this entity was pinned.

pinnedBy (User)

The user who pinned this entity.

publishedAt (DateTime)

Identifies when the comment was published at.

pullRequest (PullRequest)

Returns the pull request associated with the comment, if this comment was made on a pull request.

reactionGroups ([ReactionGroup!])

A list of reactions grouped by content left on the subject.

reactions (ReactionConnection!)

A list of Reactions left on the Issue.

reactions 的参数

  • after (String)

    Returns the elements in the list that come after the specified cursor.

  • before (String)

    Returns the elements in the list that come before the specified cursor.

  • first (Int)

    Returns the first n elements from the list.

  • last (Int)

    Returns the last n elements from the list.

  • orderBy (ReactionOrder)

    Allows specifying the order in which reactions are returned.

repository (Repository!)

The repository associated with this node.

resourcePath (URI!)

The HTTP path for this issue comment.

updatedAt (DateTime!)

Identifies the date and time when the object was last updated.

url (URI!)

The HTTP URL for this issue comment.

userContentEdits (UserContentEditConnection)

A list of edits to this content.

userContentEdits 的参数

  • after (String)

    Returns the elements in the list that come after the specified cursor.

  • before (String)

    Returns the elements in the list that come before the specified cursor.

  • first (Int)

    Returns the first n elements from the list.

  • last (Int)

    Returns the last n elements from the list.

viewerCanDelete (Boolean!)

Check if the current viewer can delete this object.

viewerCanMinimize (Boolean!)

Check if the current viewer can minimize this object.

viewerCanPin (Boolean!)

Check if the current viewer can pin this entity.

viewerCanReact (Boolean!)

Can user react to this subject.

viewerCanUnminimize (Boolean!)

Check if the current viewer can unminimize this object.

viewerCanUnpin (Boolean!)

Check if the current viewer can unpin this entity.

viewerCanUpdate (Boolean!)

Check if the current viewer can update this object.

viewerCannotUpdateReasons ([CommentCannotUpdateReason!]!)

Reasons why the current viewer can not update this comment.

viewerDidAuthor (Boolean!)

Did the viewer author this comment.

IssueCommentConnection

Object

The connection type for IssueComment.

IssueCommentConnection 字段

名称说明

edges ([IssueCommentEdge])

A list of edges.

nodes ([IssueComment])

A list of nodes.

pageInfo (PageInfo!)

Information to aid in pagination.

totalCount (Int!)

Identifies the total count of items in the connection.

IssueCommentEdge

Object

An edge in a connection.

IssueCommentEdge 字段

名称说明

cursor (String!)

A cursor for use in pagination.

node (IssueComment)

The item at the end of the edge.

IssueCommentPinnedEvent

Object

Represents aissue_comment_pinnedevent on a given issue.

IssueCommentPinnedEvent 实现

IssueCommentPinnedEvent 字段

名称说明

actor (Actor)

Identifies the actor who performed the event.

createdAt (DateTime!)

Identifies the date and time when the object was created.

id (ID!)

The Node ID of the IssueCommentPinnedEvent object.

issueComment (IssueComment)

Identifies the issue comment associated with theissue_comment_pinnedevent.

IssueCommentUnpinnedEvent

Object

Represents aissue_comment_unpinnedevent on a given issue.

IssueCommentUnpinnedEvent 实现

IssueCommentUnpinnedEvent 字段

名称说明

actor (Actor)

Identifies the actor who performed the event.

createdAt (DateTime!)

Identifies the date and time when the object was created.

id (ID!)

The Node ID of the IssueCommentUnpinnedEvent object.

issueComment (IssueComment)

Identifies the issue comment associated with theissue_comment_unpinnedevent.

IssueConnection

Object

The connection type for Issue.

IssueConnection 字段

名称说明

edges ([IssueEdge])

A list of edges.

nodes ([Issue])

A list of nodes.

pageInfo (PageInfo!)

Information to aid in pagination.

totalCount (Int!)

Identifies the total count of items in the connection.

IssueContributionsByRepository

Object

This aggregates issues opened by a user within one repository.

IssueContributionsByRepository 字段

名称说明

contributions (CreatedIssueContributionConnection!)

The issue contributions.

contributions 的参数

  • after (String)

    Returns the elements in the list that come after the specified cursor.

  • before (String)

    Returns the elements in the list that come before the specified cursor.

  • first (Int)

    Returns the first n elements from the list.

  • last (Int)

    Returns the last n elements from the list.

  • orderBy (ContributionOrder)

    Ordering options for contributions returned from the connection.

repository (Repository!)

The repository in which the issues were opened.

IssueDependenciesSummary

Object

Summary of the state of an issue's dependencies.

IssueDependenciesSummary 字段

名称说明

blockedBy (Int!)

Count of issues this issue is blocked by.

blocking (Int!)

Count of issues this issue is blocking.

totalBlockedBy (Int!)

Total count of issues this issue is blocked by (open and closed).

totalBlocking (Int!)

Total count of issues this issue is blocking (open and closed).

IssueEdge

Object

An edge in a connection.

IssueEdge 字段

名称说明

cursor (String!)

A cursor for use in pagination.

node (Issue)

The item at the end of the edge.

IssueFieldDate

Object

Represents a date issue field.

IssueFieldDate 实现

IssueFieldDate 字段

名称说明

createdAt (DateTime!)

The issue field's creation timestamp.

dataType (IssueFieldDataType!)

The issue field's data type.

description (String)

The issue field's description.

id (ID!)

The Node ID of the IssueFieldDate object.

name (String!)

The issue field's name.

visibility (IssueFieldVisibility!)

The issue field's visibility.

IssueFieldDateValue

Object

The value of a date field in an Issue item.

IssueFieldDateValue 实现

IssueFieldDateValue 字段

名称说明

field (IssueFields)

The issue field that contains this value.

id (ID!)

The Node ID of the IssueFieldDateValue object.

value (String!)

Value of the field.

IssueFieldNumber

Object

Represents a number issue field.

IssueFieldNumber 实现

IssueFieldNumber 字段

名称说明

createdAt (DateTime!)

The issue field's creation timestamp.

dataType (IssueFieldDataType!)

The issue field's data type.

description (String)

The issue field's description.

id (ID!)

The Node ID of the IssueFieldNumber object.

name (String!)

The issue field's name.

visibility (IssueFieldVisibility!)

The issue field's visibility.

IssueFieldNumberValue

Object

The value of a number field in an Issue item.

IssueFieldNumberValue 实现

IssueFieldNumberValue 字段

名称说明

field (IssueFields)

The issue field that contains this value.

id (ID!)

The Node ID of the IssueFieldNumberValue object.

value (Float!)

Value of the field.

IssueFieldsConnection

Object

The connection type for IssueFields.

IssueFieldsConnection 字段

名称说明

edges ([IssueFieldsEdge])

A list of edges.

nodes ([IssueFields])

A list of nodes.

pageInfo (PageInfo!)

Information to aid in pagination.

totalCount (Int!)

Identifies the total count of items in the connection.

IssueFieldsEdge

Object

An edge in a connection.

IssueFieldsEdge 字段

名称说明

cursor (String!)

A cursor for use in pagination.

node (IssueFields)

The item at the end of the edge.

IssueFieldSingleSelect

Object

Represents a single select issue field.

IssueFieldSingleSelect 实现

IssueFieldSingleSelect 字段

名称说明

createdAt (DateTime!)

The issue field's creation timestamp.

dataType (IssueFieldDataType!)

The issue field's data type.

description (String)

The issue field's description.

id (ID!)

The Node ID of the IssueFieldSingleSelect object.

name (String!)

The issue field's name.

options ([IssueFieldSingleSelectOption!]!)

Options for the single select field.

visibility (IssueFieldVisibility!)

The issue field's visibility.

IssueFieldSingleSelectOption

Object

Represents an option in a single-select issue field.

IssueFieldSingleSelectOption 实现

IssueFieldSingleSelectOption 字段

名称说明

color (IssueFieldSingleSelectOptionColor!)

The option's display color.

description (String)

The option's plain-text description.

id (ID!)

The Node ID of the IssueFieldSingleSelectOption object.

name (String!)

The option's name.

priority (Int)

The option's priority order.

IssueFieldSingleSelectValue

Object

The value of a single select field in an Issue item.

IssueFieldSingleSelectValue 实现

IssueFieldSingleSelectValue 字段

名称说明

color (IssueFieldSingleSelectOptionColor!)

The option's display color.

description (String)

The option's plain-text description.

field (IssueFields)

The issue field that contains this value.

id (ID!)

The Node ID of the IssueFieldSingleSelectValue object.

name (String!)

The option's name.

optionId (String)

The selected option's global relay ID.

IssueFieldText

Object

Represents a text issue field.

IssueFieldText 实现

IssueFieldText 字段

名称说明

createdAt (DateTime!)

The issue field's creation timestamp.

dataType (IssueFieldDataType!)

The issue field's data type.

description (String)

The issue field's description.

id (ID!)

The Node ID of the IssueFieldText object.

name (String!)

The issue field's name.

visibility (IssueFieldVisibility!)

The issue field's visibility.

IssueFieldTextValue

Object

The value of a text field in an Issue item.

IssueFieldTextValue 实现

IssueFieldTextValue 字段

名称说明

field (IssueFields)

The issue field that contains this value.

id (ID!)

The Node ID of the IssueFieldTextValue object.

value (String!)

Value of the field.

IssueFieldValueConnection

Object

The connection type for IssueFieldValue.

IssueFieldValueConnection 字段

名称说明

edges ([IssueFieldValueEdge])

A list of edges.

nodes ([IssueFieldValue])

A list of nodes.

pageInfo (PageInfo!)

Information to aid in pagination.

totalCount (Int!)

Identifies the total count of items in the connection.

IssueFieldValueEdge

Object

An edge in a connection.

IssueFieldValueEdge 字段

名称说明

cursor (String!)

A cursor for use in pagination.

node (IssueFieldValue)

The item at the end of the edge.

IssueTemplate

Object

A repository issue template.

IssueTemplate 字段

名称说明

about (String)

The template purpose.

assignees (UserConnection!)

The suggested assignees.

assignees 的参数

  • after (String)

    Returns the elements in the list that come after the specified cursor.

  • before (String)

    Returns the elements in the list that come before the specified cursor.

  • first (Int)

    Returns the first n elements from the list.

  • last (Int)

    Returns the last n elements from the list.

body (String)

The suggested issue body.

filename (String!)

The template filename.

labels (LabelConnection)

The suggested issue labels.

labels 的参数

  • after (String)

    Returns the elements in the list that come after the specified cursor.

  • before (String)

    Returns the elements in the list that come before the specified cursor.

  • first (Int)

    Returns the first n elements from the list.

  • last (Int)

    Returns the last n elements from the list.

  • orderBy (LabelOrder)

    Ordering options for labels returned from the connection.

name (String!)

The template name.

title (String)

The suggested issue title.

type (IssueType)

The suggested issue type.

IssueTimelineConnection

Object

The connection type for IssueTimelineItem.

IssueTimelineConnection 字段

名称说明

edges ([IssueTimelineItemEdge])

A list of edges.

nodes ([IssueTimelineItem])

A list of nodes.

pageInfo (PageInfo!)

Information to aid in pagination.

totalCount (Int!)

Identifies the total count of items in the connection.

IssueTimelineItemEdge

Object

An edge in a connection.

IssueTimelineItemEdge 字段

名称说明

cursor (String!)

A cursor for use in pagination.

node (IssueTimelineItem)

The item at the end of the edge.

IssueTimelineItemsConnection

Object

The connection type for IssueTimelineItems.

IssueTimelineItemsConnection 字段

名称说明

edges ([IssueTimelineItemsEdge])

A list of edges.

filteredCount (Int!)

Identifies the count of items after applying before and after filters.

nodes ([IssueTimelineItems])

A list of nodes.

pageCount (Int!)

Identifies the count of items after applying before/after filters and first/last/skip slicing.

pageInfo (PageInfo!)

Information to aid in pagination.

totalCount (Int!)

Identifies the total count of items in the connection.

updatedAt (DateTime!)

Identifies the date and time when the timeline was last updated.

IssueTimelineItemsEdge

Object

An edge in a connection.

IssueTimelineItemsEdge 字段

名称说明

cursor (String!)

A cursor for use in pagination.

node (IssueTimelineItems)

The item at the end of the edge.

IssueType

Object

Represents the type of Issue.

IssueType 实现

IssueType 字段

名称说明

color (IssueTypeColor!)

The issue type's color.

description (String)

The issue type's description.

id (ID!)

The Node ID of the IssueType object.

isEnabled (Boolean!)

The issue type's enabled state.

isPrivate (Boolean!)

Whether the issue type is publicly visible.

警告

isPrivate is deprecated.

Private issue types are being deprecated and can no longer be created. Removal on 2025-04-01 UTC.

issues (IssueConnection!)

The issues with this issue type in the given repository.

issues 的参数

  • after (String)

    Returns the elements in the list that come after the specified cursor.

  • before (String)

    Returns the elements in the list that come before the specified cursor.

  • filterBy (IssueFilters)

    Filtering options for issues returned from the connection.

  • first (Int)

    Returns the first n elements from the list.

  • labels ([String!])

    A list of label names to filter the pull requests by.

  • last (Int)

    Returns the last n elements from the list.

  • orderBy (IssueOrder)

    Ordering options for issues returned from the connection.

  • repositoryId (ID!)

    Target repository to load the issues from.

name (String!)

The issue type's name.

pinnedFields ([IssueFields!])

An ordered list of issue fields pinned to this type.

IssueTypeAddedEvent

Object

Represents aissue_type_addedevent on a given issue.

IssueTypeAddedEvent 实现

IssueTypeAddedEvent 字段

名称说明

actor (Actor)

Identifies the actor who performed the event.

createdAt (DateTime!)

Identifies the date and time when the object was created.

id (ID!)

The Node ID of the IssueTypeAddedEvent object.

issueType (IssueType)

The issue type added.

IssueTypeChangedEvent

Object

Represents aissue_type_changedevent on a given issue.

IssueTypeChangedEvent 实现

IssueTypeChangedEvent 字段

名称说明

actor (Actor)

Identifies the actor who performed the event.

createdAt (DateTime!)

Identifies the date and time when the object was created.

id (ID!)

The Node ID of the IssueTypeChangedEvent object.

issueType (IssueType)

The issue type added.

prevIssueType (IssueType)

The issue type removed.

IssueTypeConnection

Object

The connection type for IssueType.

IssueTypeConnection 字段

名称说明

edges ([IssueTypeEdge])

A list of edges.

nodes ([IssueType])

A list of nodes.

pageInfo (PageInfo!)

Information to aid in pagination.

totalCount (Int!)

Identifies the total count of items in the connection.

IssueTypeEdge

Object

An edge in a connection.

IssueTypeEdge 字段

名称说明

cursor (String!)

A cursor for use in pagination.

node (IssueType)

The item at the end of the edge.

IssueTypeRemovedEvent

Object

Represents aissue_type_removedevent on a given issue.

IssueTypeRemovedEvent 实现

IssueTypeRemovedEvent 字段

名称说明

actor (Actor)

Identifies the actor who performed the event.

createdAt (DateTime!)

Identifies the date and time when the object was created.

id (ID!)

The Node ID of the IssueTypeRemovedEvent object.

issueType (IssueType)

The issue type removed.

Label

Object

A label for categorizing Issues, Pull Requests, Milestones, or Discussions with a given Repository.

Label 实现

Label 字段

名称说明

color (String!)

Identifies the label color.

createdAt (DateTime)

Identifies the date and time when the label was created.

description (String)

A brief description of this label.

id (ID!)

The Node ID of the Label object.

isDefault (Boolean!)

Indicates whether or not this is a default label.

issues (IssueConnection!)

A list of issues associated with this label.

issues 的参数

  • after (String)

    Returns the elements in the list that come after the specified cursor.

  • before (String)

    Returns the elements in the list that come before the specified cursor.

  • filterBy (IssueFilters)

    Filtering options for issues returned from the connection.

  • first (Int)

    Returns the first n elements from the list.

  • labels ([String!])

    A list of label names to filter the pull requests by.

  • last (Int)

    Returns the last n elements from the list.

  • orderBy (IssueOrder)

    Ordering options for issues returned from the connection.

name (String!)

Identifies the label name.

pullRequests (PullRequestConnection!)

A list of pull requests associated with this label.

pullRequests 的参数

  • after (String)

    Returns the elements in the list that come after the specified cursor.

  • baseRefName (String)

    The base ref name to filter the pull requests by.

  • before (String)

    Returns the elements in the list that come before the specified cursor.

  • first (Int)

    Returns the first n elements from the list.

  • headRefName (String)

    The head ref name to filter the pull requests by.

  • labels ([String!])

    A list of label names to filter the pull requests by.

  • last (Int)

    Returns the last n elements from the list.

  • orderBy (IssueOrder)

    Ordering options for pull requests returned from the connection.

repository (Repository!)

The repository associated with this label.

resourcePath (URI!)

The HTTP path for this label.

updatedAt (DateTime)

Identifies the date and time when the label was last updated.

url (URI!)

The HTTP URL for this label.

LabelConnection

Object

The connection type for Label.

LabelConnection 字段

名称说明

edges ([LabelEdge])

A list of edges.

nodes ([Label])

A list of nodes.

pageInfo (PageInfo!)

Information to aid in pagination.

totalCount (Int!)

Identifies the total count of items in the connection.

LabeledEvent

Object

Represents alabeledevent on a given issue or pull request.

LabeledEvent 实现

LabeledEvent 字段

名称说明

actor (Actor)

Identifies the actor who performed the event.

createdAt (DateTime!)

Identifies the date and time when the object was created.

id (ID!)

The Node ID of the LabeledEvent object.

label (Label!)

Identifies the label associated with thelabeledevent.

labelable (Labelable!)

Identifies the Labelable associated with the event.

LabelEdge

Object

An edge in a connection.

LabelEdge 字段

名称说明

cursor (String!)

A cursor for use in pagination.

node (Label)

The item at the end of the edge.

LinkedBranch

Object

A branch linked to an issue.

LinkedBranch 实现

LinkedBranch 字段

名称说明

id (ID!)

The Node ID of the LinkedBranch object.

ref (Ref)

The branch's ref.

LinkedBranchConnection

Object

A list of branches linked to an issue.

LinkedBranchConnection 字段

名称说明

edges ([LinkedBranchEdge])

A list of edges.

nodes ([LinkedBranch])

A list of nodes.

pageInfo (PageInfo!)

Information to aid in pagination.

totalCount (Int!)

Identifies the total count of items in the connection.

LinkedBranchEdge

Object

An edge in a connection.

LinkedBranchEdge 字段

名称说明

cursor (String!)

A cursor for use in pagination.

node (LinkedBranch)

The item at the end of the edge.

LockedEvent

Object

Represents alockedevent on a given issue or pull request.

LockedEvent 实现

LockedEvent 字段

名称说明

actor (Actor)

Identifies the actor who performed the event.

createdAt (DateTime!)

Identifies the date and time when the object was created.

id (ID!)

The Node ID of the LockedEvent object.

lockReason (LockReason)

Reason that the conversation was locked (optional).

lockable (Lockable!)

Object that was locked.

MarkedAsDuplicateEvent

Object

Represents amarked_as_duplicateevent on a given issue or pull request.

MarkedAsDuplicateEvent 实现

MarkedAsDuplicateEvent 字段

名称说明

actor (Actor)

Identifies the actor who performed the event.

canonical (IssueOrPullRequest)

The authoritative issue or pull request which has been duplicated by another.

createdAt (DateTime!)

Identifies the date and time when the object was created.

duplicate (IssueOrPullRequest)

The issue or pull request which has been marked as a duplicate of another.

id (ID!)

The Node ID of the MarkedAsDuplicateEvent object.

isCrossRepository (Boolean!)

Canonical and duplicate belong to different repositories.

MentionedEvent

Object

Represents amentionedevent on a given issue or pull request.

MentionedEvent 实现

MentionedEvent 字段

名称说明

actor (Actor)

Identifies the actor who performed the event.

createdAt (DateTime!)

Identifies the date and time when the object was created.

databaseId (Int)

Identifies the primary key from the database.

id (ID!)

The Node ID of the MentionedEvent object.

Milestone

Object

Represents a Milestone object on a given repository.

Milestone 实现

Milestone 字段

名称说明

closed (Boolean!)

Indicates if the object is closed (definition of closed may depend on type).

closedAt (DateTime)

Identifies the date and time when the object was closed.

closedIssueCount (Int!)

Identifies the number of closed issues associated with the milestone.

createdAt (DateTime!)

Identifies the date and time when the object was created.

creator (Actor)

Identifies the actor who created the milestone.

description (String)

Identifies the description of the milestone.

descriptionHTML (String)

The HTML rendered description of the milestone using GitHub Flavored Markdown.

dueOn (DateTime)

Identifies the due date of the milestone.

id (ID!)

The Node ID of the Milestone object.

issues (IssueConnection!)

A list of issues associated with the milestone.

issues 的参数

  • after (String)

    Returns the elements in the list that come after the specified cursor.

  • before (String)

    Returns the elements in the list that come before the specified cursor.

  • filterBy (IssueFilters)

    Filtering options for issues returned from the connection.

  • first (Int)

    Returns the first n elements from the list.

  • labels ([String!])

    A list of label names to filter the pull requests by.

  • last (Int)

    Returns the last n elements from the list.

  • orderBy (IssueOrder)

    Ordering options for issues returned from the connection.

number (Int!)

Identifies the number of the milestone.

openIssueCount (Int!)

Identifies the number of open issues associated with the milestone.

progressPercentage (Float!)

Identifies the percentage complete for the milestone.

pullRequests (PullRequestConnection!)

A list of pull requests associated with the milestone.

pullRequests 的参数

  • after (String)

    Returns the elements in the list that come after the specified cursor.

  • baseRefName (String)

    The base ref name to filter the pull requests by.

  • before (String)

    Returns the elements in the list that come before the specified cursor.

  • first (Int)

    Returns the first n elements from the list.

  • headRefName (String)

    The head ref name to filter the pull requests by.

  • labels ([String!])

    A list of label names to filter the pull requests by.

  • last (Int)

    Returns the last n elements from the list.

  • orderBy (IssueOrder)

    Ordering options for pull requests returned from the connection.

repository (Repository!)

The repository associated with this milestone.

resourcePath (URI!)

The HTTP path for this milestone.

state (MilestoneState!)

Identifies the state of the milestone.

title (String!)

Identifies the title of the milestone.

updatedAt (DateTime!)

Identifies the date and time when the object was last updated.

url (URI!)

The HTTP URL for this milestone.

viewerCanClose (Boolean!)

Indicates if the object can be closed by the viewer.

viewerCanReopen (Boolean!)

Indicates if the object can be reopened by the viewer.

MilestoneConnection

Object

The connection type for Milestone.

MilestoneConnection 字段

名称说明

edges ([MilestoneEdge])

A list of edges.

nodes ([Milestone])

A list of nodes.

pageInfo (PageInfo!)

Information to aid in pagination.

totalCount (Int!)

Identifies the total count of items in the connection.

MilestonedEvent

Object

Represents amilestonedevent on a given issue or pull request.

MilestonedEvent 实现

MilestonedEvent 字段

名称说明

actor (Actor)

Identifies the actor who performed the event.

createdAt (DateTime!)

Identifies the date and time when the object was created.

id (ID!)

The Node ID of the MilestonedEvent object.

milestoneTitle (String!)

Identifies the milestone title associated with themilestonedevent.

subject (MilestoneItem!)

Object referenced by event.

MilestoneEdge

Object

An edge in a connection.

MilestoneEdge 字段

名称说明

cursor (String!)

A cursor for use in pagination.

node (Milestone)

The item at the end of the edge.

ParentIssueAddedEvent

Object

Represents aparent_issue_addedevent on a given issue.

ParentIssueAddedEvent 实现

ParentIssueAddedEvent 字段

名称说明

actor (Actor)

Identifies the actor who performed the event.

createdAt (DateTime!)

Identifies the date and time when the object was created.

id (ID!)

The Node ID of the ParentIssueAddedEvent object.

parent (Issue)

The parent issue added.

ParentIssueRemovedEvent

Object

Represents aparent_issue_removedevent on a given issue.

ParentIssueRemovedEvent 实现

ParentIssueRemovedEvent 字段

名称说明

actor (Actor)

Identifies the actor who performed the event.

createdAt (DateTime!)

Identifies the date and time when the object was created.

id (ID!)

The Node ID of the ParentIssueRemovedEvent object.

parent (Issue)

The parent issue removed.

PinnedEvent

Object

Represents apinnedevent on a given issue or pull request.

PinnedEvent 实现

PinnedEvent 字段

名称说明

actor (Actor)

Identifies the actor who performed the event.

createdAt (DateTime!)

Identifies the date and time when the object was created.

id (ID!)

The Node ID of the PinnedEvent object.

issue (Issue!)

Identifies the issue associated with the event.

PinnedIssue

Object

A Pinned Issue is a issue pinned to a repository's index page.

PinnedIssue 实现

PinnedIssue 字段

名称说明

databaseId (Int)

Identifies the primary key from the database.

fullDatabaseId (BigInt)

Identifies the primary key from the database as a BigInt.

id (ID!)

The Node ID of the PinnedIssue object.

issue (Issue!)

The issue that was pinned.

pinnedBy (Actor!)

The actor that pinned this issue.

repository (Repository!)

The repository that this issue was pinned to.

PinnedIssueComment

Object

A comment pinned to an Issue.

PinnedIssueComment 实现

PinnedIssueComment 字段

名称说明

databaseId (Int)

Identifies the primary key from the database.

fullDatabaseId (BigInt)

Identifies the primary key from the database as a BigInt.

id (ID!)

The Node ID of the PinnedIssueComment object.

issue (Issue!)

The issue that this comment belongs to.

issueComment (IssueComment!)

The comment that was pinned.

pinnedAt (DateTime!)

Identifies when the comment was pinned.

pinnedBy (Actor!)

The actor that pinned this comment.

PinnedIssueConnection

Object

The connection type for PinnedIssue.

PinnedIssueConnection 字段

名称说明

edges ([PinnedIssueEdge])

A list of edges.

nodes ([PinnedIssue])

A list of nodes.

pageInfo (PageInfo!)

Information to aid in pagination.

totalCount (Int!)

Identifies the total count of items in the connection.

PinnedIssueEdge

Object

An edge in a connection.

PinnedIssueEdge 字段

名称说明

cursor (String!)

A cursor for use in pagination.

node (PinnedIssue)

The item at the end of the edge.

ReferencedEvent

Object

Represents areferencedevent on a given ReferencedSubject.

ReferencedEvent 实现

ReferencedEvent 字段

名称说明

actor (Actor)

Identifies the actor who performed the event.

commit (Commit)

Identifies the commit associated with thereferencedevent.

commitRepository (Repository!)

Identifies the repository associated with thereferencedevent.

createdAt (DateTime!)

Identifies the date and time when the object was created.

id (ID!)

The Node ID of the ReferencedEvent object.

isCrossRepository (Boolean!)

Reference originated in a different repository.

isDirectReference (Boolean!)

Checks if the commit message itself references the subject. Can be false in the case of a commit comment reference.

subject (ReferencedSubject!)

Object referenced by event.

RenamedTitleEvent

Object

Represents arenamedevent on a given issue or pull request.

RenamedTitleEvent 实现

RenamedTitleEvent 字段

名称说明

actor (Actor)

Identifies the actor who performed the event.

createdAt (DateTime!)

Identifies the date and time when the object was created.

currentTitle (String!)

Identifies the current title of the issue or pull request.

id (ID!)

The Node ID of the RenamedTitleEvent object.

previousTitle (String!)

Identifies the previous title of the issue or pull request.

subject (RenamedTitleSubject!)

Subject that was renamed.

ReopenedEvent

Object

Represents areopenedevent on any Closable.

ReopenedEvent 实现

ReopenedEvent 字段

名称说明

actor (Actor)

Identifies the actor who performed the event.

closable (Closable!)

Object that was reopened.

createdAt (DateTime!)

Identifies the date and time when the object was created.

id (ID!)

The Node ID of the ReopenedEvent object.

stateReason (IssueStateReason)

The reason the issue state was changed to open.

SubIssueAddedEvent

Object

Represents asub_issue_addedevent on a given issue.

SubIssueAddedEvent 实现

SubIssueAddedEvent 字段

名称说明

actor (Actor)

Identifies the actor who performed the event.

createdAt (DateTime!)

Identifies the date and time when the object was created.

id (ID!)

The Node ID of the SubIssueAddedEvent object.

subIssue (Issue)

The sub-issue added.

SubIssueRemovedEvent

Object

Represents asub_issue_removedevent on a given issue.

SubIssueRemovedEvent 实现

SubIssueRemovedEvent 字段

名称说明

actor (Actor)

Identifies the actor who performed the event.

createdAt (DateTime!)

Identifies the date and time when the object was created.

id (ID!)

The Node ID of the SubIssueRemovedEvent object.

subIssue (Issue)

The sub-issue removed.

SubIssuesSummary

Object

Summary of the state of an issue's sub-issues.

SubIssuesSummary 字段

名称说明

completed (Int!)

Count of completed sub-issues.

percentCompleted (Int!)

Percent of sub-issues which are completed.

total (Int!)

Count of total number of sub-issues.

SubscribedEvent

Object

Represents asubscribedevent on a given Subscribable.

SubscribedEvent 实现

SubscribedEvent 字段

名称说明

actor (Actor)

Identifies the actor who performed the event.

createdAt (DateTime!)

Identifies the date and time when the object was created.

id (ID!)

The Node ID of the SubscribedEvent object.

subscribable (Subscribable!)

Object referenced by event.

TransferredEvent

Object

Represents atransferredevent on a given issue or pull request.

TransferredEvent 实现

TransferredEvent 字段

名称说明

actor (Actor)

Identifies the actor who performed the event.

createdAt (DateTime!)

Identifies the date and time when the object was created.

fromRepository (Repository)

The repository this came from.

id (ID!)

The Node ID of the TransferredEvent object.

issue (Issue!)

Identifies the issue associated with the event.

UnassignedEvent

Object

Represents anunassignedevent on any assignable object.

UnassignedEvent 实现

UnassignedEvent 字段

名称说明

actor (Actor)

Identifies the actor who performed the event.

assignable (Assignable!)

Identifies the assignable associated with the event.

assignee (Assignee)

Identifies the user or mannequin that was unassigned.

createdAt (DateTime!)

Identifies the date and time when the object was created.

id (ID!)

The Node ID of the UnassignedEvent object.

user (User)

Identifies the subject (user) who was unassigned.

警告

user is deprecated.

Assignees can now be mannequins. Use the assignee field instead. Removal on 2020-01-01 UTC.

UnlabeledEvent

Object

Represents anunlabeledevent on a given issue or pull request.

UnlabeledEvent 实现

UnlabeledEvent 字段

名称说明

actor (Actor)

Identifies the actor who performed the event.

createdAt (DateTime!)

Identifies the date and time when the object was created.

id (ID!)

The Node ID of the UnlabeledEvent object.

label (Label!)

Identifies the label associated with theunlabeledevent.

labelable (Labelable!)

Identifies the Labelable associated with the event.

UnlockedEvent

Object

Represents anunlockedevent on a given issue or pull request.

UnlockedEvent 实现

UnlockedEvent 字段

名称说明

actor (Actor)

Identifies the actor who performed the event.

createdAt (DateTime!)

Identifies the date and time when the object was created.

id (ID!)

The Node ID of the UnlockedEvent object.

lockable (Lockable!)

Object that was unlocked.

UnmarkedAsDuplicateEvent

Object

Represents anunmarked_as_duplicateevent on a given issue or pull request.

UnmarkedAsDuplicateEvent 实现

UnmarkedAsDuplicateEvent 字段

名称说明

actor (Actor)

Identifies the actor who performed the event.

canonical (IssueOrPullRequest)

The authoritative issue or pull request which has been duplicated by another.

createdAt (DateTime!)

Identifies the date and time when the object was created.

duplicate (IssueOrPullRequest)

The issue or pull request which has been marked as a duplicate of another.

id (ID!)

The Node ID of the UnmarkedAsDuplicateEvent object.

isCrossRepository (Boolean!)

Canonical and duplicate belong to different repositories.

UnpinnedEvent

Object

Represents anunpinnedevent on a given issue or pull request.

UnpinnedEvent 实现

UnpinnedEvent 字段

名称说明

actor (Actor)

Identifies the actor who performed the event.

createdAt (DateTime!)

Identifies the date and time when the object was created.

id (ID!)

The Node ID of the UnpinnedEvent object.

issue (Issue!)

Identifies the issue associated with the event.

UnsubscribedEvent

Object

Represents anunsubscribedevent on a given Subscribable.

UnsubscribedEvent 实现

UnsubscribedEvent 字段

名称说明

actor (Actor)

Identifies the actor who performed the event.

createdAt (DateTime!)

Identifies the date and time when the object was created.

id (ID!)

The Node ID of the UnsubscribedEvent object.

subscribable (Subscribable!)

Object referenced by event.

Interfaces

Assignable

Interface

An object that can have users assigned to it.

Assignable 的实现方式

Assignable 字段

名称说明

assignedActors (AssigneeConnection!)

A list of actors assigned to this object.

assignedActors 的参数

  • after (String)

    Returns the elements in the list that come after the specified cursor.

  • before (String)

    Returns the elements in the list that come before the specified cursor.

  • first (Int)

    Returns the first n elements from the list.

  • last (Int)

    Returns the last n elements from the list.

assignees (UserConnection!)

A list of Users assigned to this object.

assignees 的参数

  • after (String)

    Returns the elements in the list that come after the specified cursor.

  • before (String)

    Returns the elements in the list that come before the specified cursor.

  • first (Int)

    Returns the first n elements from the list.

  • last (Int)

    Returns the last n elements from the list.

suggestedActors (AssigneeConnection!)

A list of suggested actors to assign to this object.

suggestedActors 的参数

  • after (String)

    Returns the elements in the list that come after the specified cursor.

  • before (String)

    Returns the elements in the list that come before the specified cursor.

  • first (Int)

    Returns the first n elements from the list.

  • last (Int)

    Returns the last n elements from the list.

  • query (String)

    If provided, searches users by login or profile name.

Closable

Interface

An object that can be closed.

Closable 的实现方式

Closable 字段

名称说明

closed (Boolean!)

Indicates if the object is closed (definition of closed may depend on type).

closedAt (DateTime)

Identifies the date and time when the object was closed.

viewerCanClose (Boolean!)

Indicates if the object can be closed by the viewer.

viewerCanReopen (Boolean!)

Indicates if the object can be reopened by the viewer.

Comment

Interface

Represents a comment.

Comment 的实现方式

Comment 字段

名称说明

author (Actor)

The actor who authored the comment.

authorAssociation (CommentAuthorAssociation!)

Author's association with the subject of the comment.

body (String!)

The body as Markdown.

bodyHTML (HTML!)

The body rendered to HTML.

bodyText (String!)

The body rendered to text.

createdAt (DateTime!)

Identifies the date and time when the object was created.

createdViaEmail (Boolean!)

Check if this comment was created via an email reply.

editor (Actor)

The actor who edited the comment.

id (ID!)

The Node ID of the Comment object.

includesCreatedEdit (Boolean!)

Check if this comment was edited and includes an edit with the creation data.

lastEditedAt (DateTime)

The moment the editor made the last edit.

publishedAt (DateTime)

Identifies when the comment was published at.

updatedAt (DateTime!)

Identifies the date and time when the object was last updated.

userContentEdits (UserContentEditConnection)

A list of edits to this content.

userContentEdits 的参数

  • after (String)

    Returns the elements in the list that come after the specified cursor.

  • before (String)

    Returns the elements in the list that come before the specified cursor.

  • first (Int)

    Returns the first n elements from the list.

  • last (Int)

    Returns the last n elements from the list.

viewerDidAuthor (Boolean!)

Did the viewer author this comment.

Deletable

Interface

Entities that can be deleted.

Deletable 的实现方式

Deletable 字段

名称说明

viewerCanDelete (Boolean!)

Check if the current viewer can delete this object.

IssueFieldCommon

Interface

Common fields across different issue field types.

IssueFieldCommon 的实现方式

IssueFieldCommon 字段

名称说明

createdAt (DateTime!)

The issue field's creation timestamp.

dataType (IssueFieldDataType!)

The issue field's data type.

description (String)

The issue field's description.

name (String!)

The issue field's name.

visibility (IssueFieldVisibility!)

The issue field's visibility.

IssueFieldValueCommon

Interface

Common fields across different issue field value types.

IssueFieldValueCommon 的实现方式

IssueFieldValueCommon 字段

名称说明

field (IssueFields)

The issue field that contains this value.

Labelable

Interface

An object that can have labels assigned to it.

Labelable 的实现方式

Labelable 字段

名称说明

labels (LabelConnection)

A list of labels associated with the object.

labels 的参数

  • after (String)

    Returns the elements in the list that come after the specified cursor.

  • before (String)

    Returns the elements in the list that come before the specified cursor.

  • first (Int)

    Returns the first n elements from the list.

  • last (Int)

    Returns the last n elements from the list.

  • orderBy (LabelOrder)

    Ordering options for labels returned from the connection.

viewerCanLabel (Boolean!)

Indicates if the viewer can edit labels for this object.

Lockable

Interface

An object that can be locked.

Lockable 的实现方式

Lockable 字段

名称说明

activeLockReason (LockReason)

Reason that the conversation was locked.

locked (Boolean!)

true if the object is locked.

Minimizable

Interface

Entities that can be minimized.

Minimizable 的实现方式

Minimizable 字段

名称说明

isMinimized (Boolean!)

Returns whether or not a comment has been minimized.

minimizedReason (String)

Returns why the comment was minimized. One of abuse, off-topic, outdated, resolved, duplicate and spam. Note that the case and formatting of these values differs from the inputs to the MinimizeComment mutation.

viewerCanMinimize (Boolean!)

Check if the current viewer can minimize this object.

viewerCanUnminimize (Boolean!)

Check if the current viewer can unminimize this object.

Updatable

Interface

Entities that can be updated.

Updatable 的实现方式

Updatable 字段

名称说明

viewerCanUpdate (Boolean!)

Check if the current viewer can update this object.

UpdatableComment

Interface

Comments that can be updated.

UpdatableComment 的实现方式

UpdatableComment 字段

名称说明

viewerCannotUpdateReasons ([CommentCannotUpdateReason!]!)

Reasons why the current viewer can not update this comment.

Enums

CommentAuthorAssociation

Enum

A comment author association with repository.

CommentAuthorAssociation 的值

名称说明
COLLABORATOR

Author has been invited to collaborate on the repository.

CONTRIBUTOR

Author has previously committed to the repository.

FIRST_TIMER

Author has not previously committed to GitHub.

FIRST_TIME_CONTRIBUTOR

Author has not previously committed to the repository.

MANNEQUIN

Author is a placeholder for an unclaimed user.

MEMBER

Author is a member of the organization that owns the repository.

NONE

Author has no association with the repository.

OWNER

Author is the owner of the repository.

CommentCannotUpdateReason

Enum

The possible errors that will prevent a user from updating a comment.

CommentCannotUpdateReason 的值

名称说明
ARCHIVED

Unable to create comment because repository is archived.

DENIED

You cannot update this comment.

INSUFFICIENT_ACCESS

You must be the author or have write access to this repository to update this comment.

LOCKED

Unable to create comment because issue is locked.

LOGIN_REQUIRED

You must be logged in to update this comment.

MAINTENANCE

Repository is under maintenance.

VERIFIED_EMAIL_REQUIRED

At least one email address must be verified to update this comment.

IssueClosedStateReason

Enum

The possible state reasons of a closed issue.

IssueClosedStateReason 的值

名称说明
COMPLETED

An issue that has been closed as completed.

DUPLICATE

An issue that has been closed as a duplicate.

NOT_PLANNED

An issue that has been closed as not planned.

IssueCommentOrderField

Enum

Properties by which issue comment connections can be ordered.

IssueCommentOrderField 的值

名称说明
UPDATED_AT

Order issue comments by update time.

IssueDependencyOrderField

Enum

Properties by which issue dependencies can be ordered.

IssueDependencyOrderField 的值

名称说明
CREATED_AT

Order issue dependencies by the creation time of the dependent issue.

DEPENDENCY_ADDED_AT

Order issue dependencies by time of when the dependency relationship was added.

IssueFieldDataType

Enum

The type of an issue field.

IssueFieldDataType 的值

名称说明
DATE

Date.

NUMBER

Number.

SINGLE_SELECT

Single Select.

TEXT

Text.

IssueFieldOrderField

Enum

Properties by which issue field connections can be ordered.

IssueFieldOrderField 的值

名称说明
CREATED_AT

Order issue fields by creation time.

NAME

Order issue fields by name.

IssueFieldSingleSelectOptionColor

Enum

The display color of a single-select field option.

IssueFieldSingleSelectOptionColor 的值

名称说明
BLUE

blue.

GRAY

gray.

GREEN

green.

ORANGE

orange.

PINK

pink.

PURPLE

purple.

RED

red.

YELLOW

yellow.

IssueFieldVisibility

Enum

The visibility of an issue field.

IssueFieldVisibility 的值

名称说明
ALL

All.

ORG_ONLY

Org Only.

IssueOrderField

Enum

Properties by which issue connections can be ordered.

IssueOrderField 的值

名称说明
COMMENTS

Order issues by comment count.

CREATED_AT

Order issues by creation time.

UPDATED_AT

Order issues by update time.

IssueState

Enum

The possible states of an issue.

IssueState 的值

名称说明
CLOSED

An issue that has been closed.

OPEN

An issue that is still open.

IssueStateReason

Enum

The possible state reasons of an issue.

IssueStateReason 的值

名称说明
COMPLETED

An issue that has been closed as completed.

DUPLICATE

An issue that has been closed as a duplicate.

NOT_PLANNED

An issue that has been closed as not planned.

REOPENED

An issue that has been reopened.

IssueTypeColor

Enum

The possible color for an issue type.

IssueTypeColor 的值

名称说明
BLUE

blue.

GRAY

gray.

GREEN

green.

ORANGE

orange.

PINK

pink.

PURPLE

purple.

RED

red.

YELLOW

yellow.

IssueTypeOrderField

Enum

Properties by which issue type connections can be ordered.

IssueTypeOrderField 的值

名称说明
CREATED_AT

Order issue types by creation time.

NAME

Order issue types by name.

LabelOrderField

Enum

Properties by which label connections can be ordered.

LabelOrderField 的值

名称说明
CREATED_AT

Order labels by creation time.

ISSUE_COUNT

Order labels by issue count.

NAME

Order labels by name.

LockReason

Enum

The possible reasons that an issue or pull request was locked.

LockReason 的值

名称说明
OFF_TOPIC

The issue or pull request was locked because the conversation was off-topic.

RESOLVED

The issue or pull request was locked because the conversation was resolved.

SPAM

The issue or pull request was locked because the conversation was spam.

TOO_HEATED

The issue or pull request was locked because the conversation was too heated.

MilestoneOrderField

Enum

Properties by which milestone connections can be ordered.

MilestoneOrderField 的值

名称说明
CREATED_AT

Order milestones by when they were created.

DUE_DATE

Order milestones by when they are due.

NUMBER

Order milestones by their number.

UPDATED_AT

Order milestones by when they were last updated.

MilestoneState

Enum

The possible states of a milestone.

MilestoneState 的值

名称说明
CLOSED

A milestone that has been closed.

OPEN

A milestone that is still open.

Unions

Assignee

Union

Types that can be assigned to issues.

Assignee 可能类型

Closer

Union

The object which triggered a ClosedEvent.

Closer 可能类型

IssueFields

Union

Possible issue fields.

IssueFields 可能类型

IssueFieldValue

Union

Issue field values.

IssueFieldValue 可能类型

IssueOrPullRequest

Union

Used for return value of Repository.issueOrPullRequest.

IssueOrPullRequest 可能类型

IssueTimelineItem

Union

An item in an issue timeline.

IssueTimelineItem 可能类型

IssueTimelineItems

Union

An item in an issue timeline.

IssueTimelineItems 可能类型

MilestoneItem

Union

Types that can be inside a Milestone.

MilestoneItem 可能类型

ReferencedSubject

Union

Any referencable object.

ReferencedSubject 可能类型

RenamedTitleSubject

Union

An object which has a renamable title.

RenamedTitleSubject 可能类型

Input objects

AddAssigneesToAssignableInput

Input object

Autogenerated input type of AddAssigneesToAssignable.

输入 AddAssigneesToAssignableInput 字段

名称说明

agentAssignment (AgentAssignmentInput)

Configuration for assigning Copilot to this issue.

assignableId (ID!)

The id of the assignable object to add assignees to.

assigneeIds ([ID!]!)

The ids of actors (users or bots) to add as assignees.

clientMutationId (String)

A unique identifier for the client performing the mutation.

AddBlockedByInput

Input object

Autogenerated input type of AddBlockedBy.

输入 AddBlockedByInput 字段

名称说明

blockingIssueId (ID!)

The ID of the issue that blocks the given issue.

clientMutationId (String)

A unique identifier for the client performing the mutation.

issueId (ID!)

The ID of the issue to be blocked.

AddCommentInput

Input object

Autogenerated input type of AddComment.

输入 AddCommentInput 字段

名称说明

body (String!)

The contents of the comment.

clientMutationId (String)

A unique identifier for the client performing the mutation.

subjectId (ID!)

The Node ID of the subject to modify.

AddLabelsToLabelableInput

Input object

Autogenerated input type of AddLabelsToLabelable.

输入 AddLabelsToLabelableInput 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

labelIds ([ID!]!)

The ids of the labels to add.

labelableId (ID!)

The id of the labelable object to add labels to.

AddSubIssueInput

Input object

Autogenerated input type of AddSubIssue.

输入 AddSubIssueInput 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

issueId (ID!)

The id of the issue.

replaceParent (Boolean)

Option to replace parent issue if one already exists.

subIssueId (ID)

The id of the sub-issue.

subIssueUrl (String)

The url of the sub-issue.

ClearLabelsFromLabelableInput

Input object

Autogenerated input type of ClearLabelsFromLabelable.

输入 ClearLabelsFromLabelableInput 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

labelableId (ID!)

The id of the labelable object to clear the labels from.

CloseIssueInput

Input object

Autogenerated input type of CloseIssue.

输入 CloseIssueInput 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

duplicateIssueId (ID)

ID of the issue that this is a duplicate of.

issueId (ID!)

ID of the issue to be closed.

stateReason (IssueClosedStateReason)

The reason the issue is to be closed.

CreateIssueFieldInput

Input object

Autogenerated input type of CreateIssueField.

输入 CreateIssueFieldInput 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

dataType (IssueFieldDataType!)

The data type of the issue field.

description (String)

A description of the issue field.

name (String!)

The name of the issue field.

options ([IssueFieldSingleSelectOptionInput!])

The options for the issue field if applicable.

ownerId (ID!)

The ID of the organization where the issue field will be created.

visibility (IssueFieldVisibility)

The visibility of the issue field.

CreateIssueFieldValueInput

Input object

Autogenerated input type of CreateIssueFieldValue.

输入 CreateIssueFieldValueInput 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

issueField (IssueFieldCreateOrUpdateInput!)

The field value to create.

issueId (ID!)

The ID of the issue.

CreateIssueInput

Input object

Autogenerated input type of CreateIssue.

输入 CreateIssueInput 字段

名称说明

agentAssignment (AgentAssignmentInput)

Configuration for assigning Copilot to this issue.

assigneeIds ([ID!])

The Node ID of assignees for this issue.

body (String)

The body for the issue description.

clientMutationId (String)

A unique identifier for the client performing the mutation.

issueFields ([IssueFieldCreateOrUpdateInput!])

An array of issue fields to set on the issue during creation.

issueTemplate (String)

The name of an issue template in the repository, assigns labels and assignees from the template to the issue.

issueTypeId (ID)

The Node ID of the issue type for this issue.

labelIds ([ID!])

An array of Node IDs of labels for this issue.

milestoneId (ID)

The Node ID of the milestone for this issue.

parentIssueId (ID)

The Node ID of the parent issue to add this new issue to.

projectIds ([ID!])

An array of Node IDs for projects associated with this issue.

projectV2Ids ([ID!])

An array of Node IDs for Projects V2 associated with this issue.

repositoryId (ID!)

The Node ID of the repository.

title (String!)

The title for the issue.

CreateIssueTypeInput

Input object

Autogenerated input type of CreateIssueType.

输入 CreateIssueTypeInput 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

color (IssueTypeColor)

Color for the issue type.

description (String)

Description of the new issue type.

isEnabled (Boolean!)

Whether or not the issue type is enabled on the org level.

name (String!)

Name of the new issue type.

ownerId (ID!)

The ID for the organization on which the issue type is created.

CreateLabelInput

Input object

Autogenerated input type of CreateLabel.

输入 CreateLabelInput 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

color (String!)

A 6 character hex code, without the leading #, identifying the color of the label.

description (String)

A brief description of the label, such as its purpose.

name (String!)

The name of the label.

repositoryId (ID!)

The Node ID of the repository.

CreateLinkedBranchInput

Input object

Autogenerated input type of CreateLinkedBranch.

输入 CreateLinkedBranchInput 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

issueId (ID!)

ID of the issue to link to.

name (String)

The name of the new branch. Defaults to issue number and title.

oid (GitObjectID!)

The commit SHA to base the new branch on.

repositoryId (ID)

ID of the repository to create the branch in. Defaults to the issue repository.

DeleteIssueCommentInput

Input object

Autogenerated input type of DeleteIssueComment.

输入 DeleteIssueCommentInput 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

id (ID!)

The ID of the comment to delete.

DeleteIssueFieldInput

Input object

Autogenerated input type of DeleteIssueField.

输入 DeleteIssueFieldInput 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

fieldId (ID!)

The ID of the field to delete.

DeleteIssueFieldValueInput

Input object

Autogenerated input type of DeleteIssueFieldValue.

输入 DeleteIssueFieldValueInput 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

fieldId (ID!)

The ID of the field to delete.

issueId (ID!)

The ID of the issue.

DeleteIssueInput

Input object

Autogenerated input type of DeleteIssue.

输入 DeleteIssueInput 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

issueId (ID!)

The ID of the issue to delete.

DeleteIssueTypeInput

Input object

Autogenerated input type of DeleteIssueType.

输入 DeleteIssueTypeInput 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

issueTypeId (ID!)

The ID of the issue type to delete.

DeleteLabelInput

Input object

Autogenerated input type of DeleteLabel.

输入 DeleteLabelInput 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

id (ID!)

The Node ID of the label to be deleted.

DeleteLinkedBranchInput

Input object

Autogenerated input type of DeleteLinkedBranch.

输入 DeleteLinkedBranchInput 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

linkedBranchId (ID!)

The ID of the linked branch.

IssueCommentOrder

Input object

Ways in which lists of issue comments can be ordered upon return.

输入 IssueCommentOrder 字段

名称说明

direction (OrderDirection!)

The direction in which to order issue comments by the specified field.

field (IssueCommentOrderField!)

The field in which to order issue comments by.

IssueDependencyOrder

Input object

Ordering options issue dependencies.

输入 IssueDependencyOrder 字段

名称说明

direction (OrderDirection!)

The ordering direction.

field (IssueDependencyOrderField!)

The field to order issue dependencies by.

IssueFieldCreateOrUpdateInput

Input object

Represents an issue field value that must be set on an issue during issue creation.

输入 IssueFieldCreateOrUpdateInput 字段

名称说明

dateValue (String)

The date value, for a date field.

delete (Boolean)

Set to true to delete the field value.

fieldId (ID!)

The ID of the issue field.

numberValue (Float)

The numeric value, for a number field.

singleSelectOptionId (ID)

The ID of the selected option, for a single select field.

textValue (String)

The text value, for a text field.

IssueFieldOrder

Input object

Ordering options for issue field connections.

输入 IssueFieldOrder 字段

名称说明

direction (OrderDirection!)

The ordering direction.

field (IssueFieldOrderField!)

The field to order issue fields by.

IssueFieldSingleSelectOptionInput

Input object

A single selection option for an issue field.

输入 IssueFieldSingleSelectOptionInput 字段

名称说明

color (IssueFieldSingleSelectOptionColor!)

The color associated with the option.

description (String)

A description of the option.

name (String!)

The name of the option.

priority (Int!)

The priority of the option in the list.

IssueFilters

Input object

Ways in which to filter lists of issues.

输入 IssueFilters 字段

名称说明

assignee (String)

List issues assigned to given name. Pass in null for issues with no assigned user, and * for issues assigned to any user.

createdBy (String)

List issues created by given name.

labels ([String!])

List issues where the list of label names exist on the issue.

mentioned (String)

List issues where the given name is mentioned in the issue.

milestone (String)

List issues by given milestone argument. If an string representation of an integer is passed, it should refer to a milestone by its database ID. Pass in null for issues with no milestone, and * for issues that are assigned to any milestone.

milestoneNumber (String)

List issues by given milestone argument. If an string representation of an integer is passed, it should refer to a milestone by its number field. Pass in null for issues with no milestone, and * for issues that are assigned to any milestone.

since (DateTime)

List issues that have been updated at or after the given date.

states ([IssueState!])

List issues filtered by the list of states given.

type (String)

List issues filtered by the type given, only supported by searches on repositories.

viewerSubscribed (Boolean)

List issues subscribed to by viewer.

IssueOrder

Input object

Ways in which lists of issues can be ordered upon return.

输入 IssueOrder 字段

名称说明

direction (OrderDirection!)

The direction in which to order issues by the specified field.

field (IssueOrderField!)

The field in which to order issues by.

IssueTypeOrder

Input object

Ordering options for issue types connections.

输入 IssueTypeOrder 字段

名称说明

direction (OrderDirection!)

The ordering direction.

field (IssueTypeOrderField!)

The field to order issue types by.

LabelOrder

Input object

Ways in which lists of labels can be ordered upon return.

输入 LabelOrder 字段

名称说明

direction (OrderDirection!)

The direction in which to order labels by the specified field.

field (LabelOrderField!)

The field in which to order labels by.

LockLockableInput

Input object

Autogenerated input type of LockLockable.

输入 LockLockableInput 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

lockReason (LockReason)

A reason for why the item will be locked.

lockableId (ID!)

ID of the item to be locked.

MilestoneOrder

Input object

Ordering options for milestone connections.

输入 MilestoneOrder 字段

名称说明

direction (OrderDirection!)

The ordering direction.

field (MilestoneOrderField!)

The field to order milestones by.

MinimizeCommentInput

Input object

Autogenerated input type of MinimizeComment.

输入 MinimizeCommentInput 字段

名称说明

classifier (ReportedContentClassifiers!)

The classification of comment.

clientMutationId (String)

A unique identifier for the client performing the mutation.

subjectId (ID!)

The Node ID of the subject to modify.

PinIssueCommentInput

Input object

Autogenerated input type of PinIssueComment.

输入 PinIssueCommentInput 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

issueCommentId (ID!)

The ID of the Issue Comment to pin. Comment pinning is not supported on Pull Requests.

PinIssueInput

Input object

Autogenerated input type of PinIssue.

输入 PinIssueInput 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

issueId (ID!)

The ID of the issue to be pinned.

RemoveAssigneesFromAssignableInput

Input object

Autogenerated input type of RemoveAssigneesFromAssignable.

输入 RemoveAssigneesFromAssignableInput 字段

名称说明

assignableId (ID!)

The id of the assignable object to remove assignees from.

assigneeIds ([ID!]!)

The ids of actors to remove as assignees.

clientMutationId (String)

A unique identifier for the client performing the mutation.

RemoveBlockedByInput

Input object

Autogenerated input type of RemoveBlockedBy.

输入 RemoveBlockedByInput 字段

名称说明

blockingIssueId (ID!)

The ID of the blocking issue.

clientMutationId (String)

A unique identifier for the client performing the mutation.

issueId (ID!)

The ID of the blocked issue.

RemoveLabelsFromLabelableInput

Input object

Autogenerated input type of RemoveLabelsFromLabelable.

输入 RemoveLabelsFromLabelableInput 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

labelIds ([ID!]!)

The ids of labels to remove.

labelableId (ID!)

The id of the Labelable to remove labels from.

RemoveSubIssueInput

Input object

Autogenerated input type of RemoveSubIssue.

输入 RemoveSubIssueInput 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

issueId (ID!)

The id of the issue.

subIssueId (ID!)

The id of the sub-issue.

ReopenIssueInput

Input object

Autogenerated input type of ReopenIssue.

输入 ReopenIssueInput 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

issueId (ID!)

ID of the issue to be opened.

ReplaceActorsForAssignableInput

Input object

Autogenerated input type of ReplaceActorsForAssignable.

输入 ReplaceActorsForAssignableInput 字段

名称说明

actorIds ([ID!])

The ids of the actors to replace the existing assignees. May be used as an alternative to or in conjunction with actorLogins.

actorLogins ([String!])

The usernames of the actors to replace the existing assignees. May be used as an alternative to or in conjunction with actorIds. For bots, use the login format with [bot] suffix (e.g., 'my-app[bot]').

agentAssignment (AgentAssignmentInput)

Configuration for assigning an AI agent to this issue.

assignableId (ID!)

The id of the assignable object to replace the assignees for.

clientMutationId (String)

A unique identifier for the client performing the mutation.

ReprioritizeSubIssueInput

Input object

Autogenerated input type of ReprioritizeSubIssue.

输入 ReprioritizeSubIssueInput 字段

名称说明

afterId (ID)

The id of the sub-issue to be prioritized after (either positional argument after OR before should be specified).

beforeId (ID)

The id of the sub-issue to be prioritized before (either positional argument after OR before should be specified).

clientMutationId (String)

A unique identifier for the client performing the mutation.

issueId (ID!)

The id of the parent issue.

subIssueId (ID!)

The id of the sub-issue to reprioritize.

SetIssueFieldValueInput

Input object

Autogenerated input type of SetIssueFieldValue.

输入 SetIssueFieldValueInput 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

issueFields ([IssueFieldCreateOrUpdateInput!]!)

The issue fields to set on the issue.

issueId (ID!)

The ID of the Issue to set the field value on.

TransferIssueInput

Input object

Autogenerated input type of TransferIssue.

输入 TransferIssueInput 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

createLabelsIfMissing (Boolean)

Whether to create labels if they don't exist in the target repository (matched by name).

issueId (ID!)

The Node ID of the issue to be transferred.

repositoryId (ID!)

The Node ID of the repository the issue should be transferred to.

UnlockLockableInput

Input object

Autogenerated input type of UnlockLockable.

输入 UnlockLockableInput 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

lockableId (ID!)

ID of the item to be unlocked.

UnmarkIssueAsDuplicateInput

Input object

Autogenerated input type of UnmarkIssueAsDuplicate.

输入 UnmarkIssueAsDuplicateInput 字段

名称说明

canonicalId (ID!)

ID of the issue or pull request currently considered canonical/authoritative/original.

clientMutationId (String)

A unique identifier for the client performing the mutation.

duplicateId (ID!)

ID of the issue or pull request currently marked as a duplicate.

UnminimizeCommentInput

Input object

Autogenerated input type of UnminimizeComment.

输入 UnminimizeCommentInput 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

subjectId (ID!)

The Node ID of the subject to modify.

UnpinIssueCommentInput

Input object

Autogenerated input type of UnpinIssueComment.

输入 UnpinIssueCommentInput 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

issueCommentId (ID!)

The ID of the Issue Comment to unpin. Comment pinning is not supported on Pull Requests.

UnpinIssueInput

Input object

Autogenerated input type of UnpinIssue.

输入 UnpinIssueInput 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

issueId (ID!)

The ID of the issue to be unpinned.

UpdateIssueCommentInput

Input object

Autogenerated input type of UpdateIssueComment.

输入 UpdateIssueCommentInput 字段

名称说明

body (String!)

The updated text of the comment.

clientMutationId (String)

A unique identifier for the client performing the mutation.

id (ID!)

The ID of the IssueComment to modify.

UpdateIssueFieldInput

Input object

Autogenerated input type of UpdateIssueField.

输入 UpdateIssueFieldInput 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

description (String)

A description of the issue field.

id (ID!)

The ID of the issue field to update.

name (String)

The name of the issue field.

options ([IssueFieldSingleSelectOptionInput!])

The options for the issue field if applicable.

visibility (IssueFieldVisibility)

The visibility of the issue field.

UpdateIssueFieldValueInput

Input object

Autogenerated input type of UpdateIssueFieldValue.

输入 UpdateIssueFieldValueInput 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

issueField (IssueFieldCreateOrUpdateInput!)

The field value to update.

issueId (ID!)

The ID of the issue.

UpdateIssueInput

Input object

Autogenerated input type of UpdateIssue.

输入 UpdateIssueInput 字段

名称说明

agentAssignment (AgentAssignmentInput)

Configuration for assigning an AI agent to this issue.

assigneeIds ([ID!])

An array of Node IDs of users or bots for this issue.

body (String)

The body for the issue description.

clientMutationId (String)

A unique identifier for the client performing the mutation.

id (ID!)

The ID of the Issue to modify.

issueTypeId (ID)

The ID of the Issue Type for this issue.

labelIds ([ID!])

An array of Node IDs of labels for this issue.

milestoneId (ID)

The Node ID of the milestone for this issue.

projectIds ([ID!])

An array of Node IDs for projects associated with this issue.

state (IssueState)

The desired issue state.

title (String)

The title for the issue.

UpdateIssueIssueTypeInput

Input object

Autogenerated input type of UpdateIssueIssueType.

输入 UpdateIssueIssueTypeInput 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

issueId (ID!)

The ID of the issue to update.

issueTypeId (ID)

The ID of the issue type to update on the issue.

UpdateIssueTypeInput

Input object

Autogenerated input type of UpdateIssueType.

输入 UpdateIssueTypeInput 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

color (IssueTypeColor)

Color for the issue type.

description (String)

The description of the issue type.

isEnabled (Boolean)

Whether or not the issue type is enabled for the organization.

issueTypeId (ID!)

The ID of the issue type to update.

name (String)

The name of the issue type.

UpdateLabelInput

Input object

Autogenerated input type of UpdateLabel.

输入 UpdateLabelInput 字段

名称说明

clientMutationId (String)

A unique identifier for the client performing the mutation.

color (String)

A 6 character hex code, without the leading #, identifying the updated color of the label.

description (String)

A brief description of the label, such as its purpose.

id (ID!)

The Node ID of the label to be updated.

name (String)

The updated name of the label.