Class PullRequestCommentEvent

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
PullRequestCommentAddedEvent, PullRequestCommentDeletedEvent, PullRequestCommentEditedEvent, PullRequestCommentRepliedEvent

public abstract class PullRequestCommentEvent extends PullRequestEvent
Event that is raised when a comment is added, edited or deleted on a pull request.
See Also:
  • Constructor Details

    • PullRequestCommentEvent

      protected PullRequestCommentEvent(@Nonnull Object source, @Nonnull PullRequest pullRequest, @Nonnull Comment comment, @Nullable Comment parent, @Nonnull CommentAction commentAction)
      Constructs a new PullRequestCommentEvent.
      Parameters:
      source - the component raising the event
      pullRequest - the affected pull request
      comment - the affected comment
      parent - the parent of the comment, which will be null for top-level comments
      commentAction - the action performed on the comment
  • Method Details

    • getComment

      @Nonnull public Comment getComment()
    • getCommentAction

      @Nonnull public CommentAction getCommentAction()
    • getParent

      @Nullable public Comment getParent()