Class PullRequestCommentAddRequestedEvent

All Implemented Interfaces:
CancelableEvent, CancelState, Serializable

public class PullRequestCommentAddRequestedEvent extends PullRequestCancelableCommentEvent
Event that is raised before a comment is added to a pull request. This event is synchronous, allowing listeners to perform operations in the same database transaction where the comment is added.

This event is also cancelable. A listener may prevent the comment from being added by canceling this event. Throwing an exception will not prevent the comment from being added; the exception will be logged and ignored.

This does not include replies, which raise a PullRequestCommentReplyRequestedEvent.

Since:
6.6
See Also:
  • Constructor Details

    • PullRequestCommentAddRequestedEvent

      public PullRequestCommentAddRequestedEvent(@Nonnull Object source, @Nonnull PullRequest pullRequest, @Nonnull Comment comment, @Nonnull CancelState cancelState)