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()
      Create default GHRepositoryDiscussionComment instance
  • Method Details

    • getHtmlUrl

      public URL getHtmlUrl()
      Gets the html url.
      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