Magidoc

Discussion
Object

A discussion in a repository.

Fields

#

activeLockReason

Reason that the conversation was locked.

answer

The comment chosen as this discussion's answer, if any.

answerChosenAt

The time when a user chose this discussion's answer, if answered.

answerChosenBy

The user who chose this discussion's answer, if answered.

author

The actor who authored the comment.

authorAssociation

Non-null

Author's association with the subject of the comment.

body

Non-null

The main text of the discussion post.

bodyHTML

Non-null

The body rendered to HTML.

bodyText

Non-null

The body rendered to text.

category

Non-null

The category for this discussion.

closed

Non-null

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

closedAt

Identifies the date and time when the object was closed.

comments

Non-null

The replies to the discussion.

createdAt

Non-null

Identifies the date and time when the object was created.

createdViaEmail

Non-null

Check if this comment was created via an email reply.

databaseId

Identifies the primary key from the database.

editor

The actor who edited the comment.

id

ID !
Non-null

The Node ID of the Discussion object

includesCreatedEdit

Non-null

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

isAnswered

Only return answered/unanswered discussions

labels

A list of labels associated with the object.

lastEditedAt

The moment the editor made the last edit

locked

Non-null

true if the object is locked

number

Non-null

The number identifying this discussion within the repository.

poll

The poll associated with this discussion, if one exists.

publishedAt

Identifies when the comment was published at.

reactionGroups

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

reactions

Non-null

A list of Reactions left on the Issue.

repository

Non-null

The repository associated with this node.

resourcePath

Non-null

The path for this discussion.

stateReason

Identifies the reason for the discussion's state.

title

Non-null

The title of this discussion.

updatedAt

Non-null

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

upvoteCount

Non-null

Number of upvotes that this subject has received.

url

Non-null

The URL for this discussion.

userContentEdits

A list of edits to this content.

viewerCanClose

Non-null

Indicates if the object can be closed by the viewer.

viewerCanDelete

Non-null

Check if the current viewer can delete this object.

viewerCanLabel

Non-null

Indicates if the viewer can edit labels for this object.

viewerCanReact

Non-null

Can user react to this subject

viewerCanReopen

Non-null

Indicates if the object can be reopened by the viewer.

viewerCanSubscribe

Non-null

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

viewerCanUpdate

Non-null

Check if the current viewer can update this object.

viewerCanUpvote

Non-null

Whether or not the current user can add or remove an upvote on this subject.

viewerDidAuthor

Non-null

Did the viewer author this comment.

viewerHasUpvoted

Non-null

Whether or not the current user has already upvoted this subject.

viewerSubscription

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

Interfaces

#

Also implements Closable , Comment , Deletable , Labelable , Lockable , Node , Reactable , RepositoryNode , Subscribable , Updatable , Votable .

Usages

#

References

#