Queries
id
ID of the object.
Type: ID!
relay
Workaround for re-exposing the root query object. (Refer to https://github.com/facebook/relay/issues/112 for more information.).
Type: Query!
Mutations
addEnterpriseAdmin
Adds an administrator to the global enterprise account.
Input fields for addEnterpriseAdmin
input(AddEnterpriseAdminInput!)
Return fields for addEnterpriseAdmin
| Name | Description |
|---|---|
| The user who was added as an administrator. |
| A unique identifier for the client performing the mutation. |
| The updated enterprise. |
| The role of the administrator. |
| The viewer performing the mutation. |
createTeamDiscussion
Creates a new team discussion.
Input fields for createTeamDiscussion
input(CreateTeamDiscussionInput!)
Return fields for createTeamDiscussion
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The new discussion. Warning
The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC. |
createTeamDiscussionComment
Creates a new team discussion comment.
Input fields for createTeamDiscussionComment
Return fields for createTeamDiscussionComment
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The new comment. Warning
The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC. |
deleteTeamDiscussion
Deletes a team discussion.
Input fields for deleteTeamDiscussion
input(DeleteTeamDiscussionInput!)
Return fields for deleteTeamDiscussion
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
deleteTeamDiscussionComment
Deletes a team discussion comment.
Input fields for deleteTeamDiscussionComment
Return fields for deleteTeamDiscussionComment
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
updateEnterpriseTeamDiscussionsSetting
Sets whether team discussions are enabled for an enterprise.
Input fields for updateEnterpriseTeamDiscussionsSetting
Return fields for updateEnterpriseTeamDiscussionsSetting
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The enterprise with the updated team discussions setting. |
| A message confirming the result of updating the team discussions setting. |
updateTeamDiscussion
Updates a team discussion.
Input fields for updateTeamDiscussion
input(UpdateTeamDiscussionInput!)
Return fields for updateTeamDiscussion
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The updated discussion. |
updateTeamDiscussionComment
Updates a discussion comment.
Input fields for updateTeamDiscussionComment
Return fields for updateTeamDiscussionComment
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The updated comment. |
Objects
PageInfo
Information about pagination in a connection.
Fields for PageInfo
| Name | Description |
|---|---|
| When paginating forwards, the cursor to continue. |
| When paginating forwards, are there more items?. |
| When paginating backwards, are there more items?. |
| When paginating backwards, the cursor to continue. |
TeamDiscussion
A team discussion.
TeamDiscussion Implements
Fields for TeamDiscussion
| Name | Description |
|---|---|
| The actor who authored the comment. |
| Author's association with the discussion's team. Warning
The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC. |
| The body as Markdown. |
| The body rendered to HTML. |
| The body rendered to text. |
| Identifies the discussion body hash. Warning
The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC. |
| A list of comments on this discussion. Warning
The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC. Arguments for
|
| The HTTP path for discussion comments. Warning
The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC. |
| The HTTP URL for discussion comments. Warning
The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC. |
| Identifies the date and time when the object was created. |
| Check if this comment was created via an email reply. |
| Identifies the primary key from the database. |
| The actor who edited the comment. |
| The Node ID of the TeamDiscussion object. |
| Check if this comment was edited and includes an edit with the creation data. |
| Whether or not the discussion is pinned. Warning
The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC. |
| Whether or not the discussion is only visible to team members and organization owners. Warning
The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC. |
| The moment the editor made the last edit. |
| Identifies the discussion within its team. Warning
The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC. |
| Identifies when the comment was published at. |
| A list of reactions grouped by content left on the subject. |
| A list of Reactions left on the Issue. Arguments for
|
| The HTTP path for this discussion. Warning
The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC. |
| The team that defines the context of this discussion. Warning
The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC. |
| The title of the discussion. Warning
The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC. |
| Identifies the date and time when the object was last updated. |
| The HTTP URL for this discussion. Warning
The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC. |
| A list of edits to this content. Arguments for
|
| Check if the current viewer can delete this object. |
| Whether or not the current viewer can pin this discussion. Warning
The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC. |
| Can user react to this subject. |
| Check if the viewer is able to change their subscription status for the repository. |
| Check if the current viewer can update this object. |
| Reasons why the current viewer can not update this comment. |
| Did the viewer author this comment. |
| Identifies if the viewer is watching, not watching, or ignoring the subscribable entity. |
TeamDiscussionComment
A comment on a team discussion.
TeamDiscussionComment Implements
Fields for TeamDiscussionComment
| Name | Description |
|---|---|
| The actor who authored the comment. |
| Author's association with the comment's team. Warning
The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC. |
| The body as Markdown. |
| The body rendered to HTML. |
| The body rendered to text. |
| The current version of the body content. Warning
The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC. |
| Identifies the date and time when the object was created. |
| Check if this comment was created via an email reply. |
| Identifies the primary key from the database. |
| The discussion this comment is about. Warning
The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC. |
| The actor who edited the comment. |
| The Node ID of the TeamDiscussionComment object. |
| Check if this comment was edited and includes an edit with the creation data. |
| The moment the editor made the last edit. |
| Identifies the comment number. Warning
The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC. |
| Identifies when the comment was published at. |
| A list of reactions grouped by content left on the subject. |
| A list of Reactions left on the Issue. Arguments for
|
| The HTTP path for this comment. Warning
The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC. |
| Identifies the date and time when the object was last updated. |
| The HTTP URL for this comment. Warning
The Team Discussions feature is deprecated in favor of Organization Discussions. Follow the guide at https://github.blog/changelog/2023-02-08-sunset-notice-team-discussions/ to find a suitable replacement. Removal on 2024-07-01 UTC. |
| A list of edits to this content. Arguments for
|
| Check if the current viewer can delete this object. |
| Can user react to this subject. |
| Check if the current viewer can update this object. |
| Reasons why the current viewer can not update this comment. |
| Did the viewer author this comment. |
TeamDiscussionCommentConnection
The connection type for TeamDiscussionComment.
Fields for TeamDiscussionCommentConnection
| Name | Description |
|---|---|
| A list of edges. |
| A list of nodes. |
| Information to aid in pagination. |
| Identifies the total count of items in the connection. |
TeamDiscussionCommentEdge
An edge in a connection.
Fields for TeamDiscussionCommentEdge
| Name | Description |
|---|---|
| A cursor for use in pagination. |
| The item at the end of the edge. |
TeamDiscussionConnection
The connection type for TeamDiscussion.
Fields for TeamDiscussionConnection
| Name | Description |
|---|---|
| A list of edges. |
| A list of nodes. |
| Information to aid in pagination. |
| Identifies the total count of items in the connection. |
TeamDiscussionEdge
An edge in a connection.
Fields for TeamDiscussionEdge
| Name | Description |
|---|---|
| A cursor for use in pagination. |
| The item at the end of the edge. |
Interfaces
AnnouncementBannerI
Represents an announcement banner.
AnnouncementBannerI is implemented by
Fields for AnnouncementBannerI
| Name | Description |
|---|---|
| The text of the announcement. Warning
The individual |
| The date the announcement was created. Warning
The individual |
| The expiration date of the announcement, if any. Warning
The individual |
| Whether the announcement can be dismissed by the user. Warning
The individual |
Enums
TeamDiscussionCommentOrderField
Properties by which team discussion comment connections can be ordered.
Values for TeamDiscussionCommentOrderField
| Name | Description |
|---|---|
NUMBER | Allows sequential ordering of team discussion comments (which is equivalent to chronological ordering). |
Input objects
AddEnterpriseAdminInput
Autogenerated input type of AddEnterpriseAdmin.
Input fields for AddEnterpriseAdminInput
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The ID of the enterprise account to which the administrator should be added. |
| The login of the user to add as an administrator. |
CreateTeamDiscussionCommentInput
Autogenerated input type of CreateTeamDiscussionComment.
Input fields for CreateTeamDiscussionCommentInput
| Name | Description |
|---|---|
| The content of the comment. This field is required. Upcoming Change on 2024-07-01 UTC
Description: |
| A unique identifier for the client performing the mutation. |
| The ID of the discussion to which the comment belongs. This field is required. Upcoming Change on 2024-07-01 UTC
Description: |
CreateTeamDiscussionInput
Autogenerated input type of CreateTeamDiscussion.
Input fields for CreateTeamDiscussionInput
| Name | Description |
|---|---|
| The content of the discussion. This field is required. Upcoming Change on 2024-07-01 UTC
Description: |
| A unique identifier for the client performing the mutation. |
| If true, restricts the visibility of this discussion to team members and organization owners. If false or not specified, allows any organization member to view this discussion. Upcoming Change on 2024-07-01 UTC
Description: |
| The ID of the team to which the discussion belongs. This field is required. Upcoming Change on 2024-07-01 UTC
Description: |
| The title of the discussion. This field is required. Upcoming Change on 2024-07-01 UTC
Description: |
DeleteTeamDiscussionCommentInput
Autogenerated input type of DeleteTeamDiscussionComment.
Input fields for DeleteTeamDiscussionCommentInput
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The ID of the comment to delete. |
DeleteTeamDiscussionInput
Autogenerated input type of DeleteTeamDiscussion.
Input fields for DeleteTeamDiscussionInput
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The discussion ID to delete. |
TeamDiscussionCommentOrder
Ways in which team discussion comment connections can be ordered.
Input fields for TeamDiscussionCommentOrder
| Name | Description |
|---|---|
| The direction in which to order nodes. |
| The field by which to order nodes. |
UpdateEnterpriseTeamDiscussionsSettingInput
Autogenerated input type of UpdateEnterpriseTeamDiscussionsSetting.
Input fields for UpdateEnterpriseTeamDiscussionsSettingInput
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The ID of the enterprise on which to set the team discussions setting. |
| The value for the team discussions setting on the enterprise. |
UpdateTeamDiscussionCommentInput
Autogenerated input type of UpdateTeamDiscussionComment.
Input fields for UpdateTeamDiscussionCommentInput
| Name | Description |
|---|---|
| The updated text of the comment. |
| The current version of the body content. |
| A unique identifier for the client performing the mutation. |
| The ID of the comment to modify. |
UpdateTeamDiscussionInput
Autogenerated input type of UpdateTeamDiscussion.
Input fields for UpdateTeamDiscussionInput
| Name | Description |
|---|---|
| The updated text of the discussion. |
| The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server. |
| A unique identifier for the client performing the mutation. |
| The Node ID of the discussion to modify. |
| If provided, sets the pinned state of the updated discussion. |
| The updated title of the discussion. |
Scalars
Base64String
A (potentially binary) string encoded using base64.
BigInt
Represents non-fractional signed whole numeric values. Since the value may exceed the size of a 32-bit integer, it's encoded as a string.
Boolean
Represents true or false values.
Date
An ISO-8601 encoded date string.
DateTime
An ISO-8601 encoded UTC date string.
Float
Represents signed double-precision fractional values as specified by IEEE 754.
GitObjectID
A Git object ID.
GitRefname
A fully qualified reference name (e.g. refs/heads/master).
GitSSHRemote
Git SSH string.
GitTimestamp
An ISO-8601 encoded date string. Unlike the DateTime type, GitTimestamp is not converted in UTC.
HTML
A string containing HTML code.
ID
Represents a unique identifier that is Base64 obfuscated. It is often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as "VXNlci0xMA==") or integer (such as 4) input value will be accepted as an ID.
Int
Represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
PreciseDateTime
An ISO-8601 encoded UTC date string with millisecond precision.
String
Represents textual data as UTF-8 character sequences. This type is most often used by GraphQL to represent free-form human-readable text.
URI
An RFC 3986, RFC 3987, and RFC 6570 (level 4) compliant URI string.
X509Certificate
A valid x509 certificate string.