Class GHRepositoryDiscussionComment

java.lang.Object
org.kohsuke.github.GHObject
org.kohsuke.github.GHRepositoryDiscussionComment

public class GHRepositoryDiscussionComment extends GHObject
A discussion comment in the repository.

This is different from Teams discussions (see GHDiscussion).

The discussion_comment event exposes the GraphQL object (more or less - the ids are handled differently for instance) directly. The new Discussions API is only available through GraphQL so for now you cannot execute any actions on this object.

Author:
Guillaume Smet
See Also:
  • Constructor Details

    • GHRepositoryDiscussionComment

      public GHRepositoryDiscussionComment()
  • Method Details

    • getHtmlUrl

      public URL getHtmlUrl()
      Gets the html url.
      Specified by:
      getHtmlUrl in class GHObject
      Returns:
      the html url
    • getParentId

      public Long getParentId()
      Gets the parent comment id.
      Returns:
      the parent comment id
    • getChildCommentCount

      public int getChildCommentCount()
      Gets the number of child comments.
      Returns:
      the number of child comments
    • getUser

      public GHUser getUser() throws IOException
      Gets the user.
      Returns:
      the user
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • getAuthorAssociation

      public GHCommentAuthorAssociation getAuthorAssociation()
      Gets the author association.
      Returns:
      the author association
    • getBody

      public String getBody()
      Gets the body.
      Returns:
      the body
    • getRoot

      @Deprecated public GitHub getRoot()
      Deprecated.
      For access to the GitHub instance, use a local copy instead of pulling it out of objects.
      Get the root GitHub instance for this object.
      Returns:
      the root GitHub instance