Class PullRequestUpdatedEvent
java.lang.Object
java.util.EventObject
com.atlassian.bitbucket.event.ApplicationEvent
com.atlassian.bitbucket.event.pull.PullRequestEvent
com.atlassian.bitbucket.event.pull.PullRequestUpdatedEvent
- All Implemented Interfaces:
Serializable
Event that is raised when the pull request title, description, target branch or draft status are updated.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionPullRequestUpdatedEvent
(Object source, PullRequest pullRequest, String previousTitle, String previousDescription, Ref previousToBranch, boolean previousDraft) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Methods inherited from class com.atlassian.bitbucket.event.pull.PullRequestEvent
getAction, getPullRequest
Methods inherited from class com.atlassian.bitbucket.event.ApplicationEvent
getDate, getUser
Methods inherited from class java.util.EventObject
getSource, toString
-
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
-
getPreviousTitle
-
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; otherwisefalse
- Since:
- 8.18
-