Class GHReaction

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

@Preview(SQUIRREL_GIRL) public class GHReaction extends GHObject
Reaction to issue, comment, PR, and so on.
Author:
Kohsuke Kawaguchi
See Also:
  • Constructor Details

    • GHReaction

      public GHReaction()
  • Method Details

    • getContent

      public ReactionContent getContent()
      The kind of reaction left.
      Returns:
      the content
    • getUser

      public GHUser getUser()
      User who left the reaction.
      Returns:
      the user
    • getHtmlUrl

      @Deprecated public URL getHtmlUrl()
      Deprecated.
      Reaction has no HTML URL. Don't call this method.
      Specified by:
      getHtmlUrl in class GHObject
      Returns:
      the html url
    • delete

      @Deprecated public void delete() throws IOException
      Deprecated.
      this API is no longer supported by GitHub, keeping it as is for old versions of GitHub Enterprise
      Removes this reaction.
      Throws:
      IOException - the io exception
      See Also:
    • 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