Class PullRequestUpdatedEvent

All Implemented Interfaces:
Serializable

@AsynchronousPreferred public class PullRequestUpdatedEvent extends PullRequestEvent
Event that is raised when the pull request title, description, target branch or draft status are updated.
See Also:
  • Constructor Details

    • PullRequestUpdatedEvent

      public PullRequestUpdatedEvent(@Nonnull Object source, @Nonnull PullRequest pullRequest, @Nonnull String previousTitle, @Nullable String previousDescription, @Nullable Ref previousToBranch, boolean previousDraft)
      Since:
      8.18
  • Method Details

    • getPreviousDescription

      @Nullable public String getPreviousDescription()
    • getPreviousTitle

      @Nonnull public String getPreviousTitle()
    • getPreviousToBranch

      @Nullable public Ref getPreviousToBranch()
      Returns:
      the previous destination branch if it has changed, otherwise null
    • isPreviousDraft

      public boolean isPreviousDraft()
      Returns:
      true if the pull request was previously in draft; otherwise false
      Since:
      8.18