Class PullRequestRescopedEvent
java.lang.Object
java.util.EventObject
com.atlassian.bitbucket.event.ApplicationEvent
com.atlassian.bitbucket.event.pull.PullRequestEvent
com.atlassian.bitbucket.event.pull.PullRequestRescopedEvent
- All Implemented Interfaces:
- Serializable
Event that is raised when the ref for the source-branch and/or the target-branch of a pull request is updated. Note
 that this does not necessarily mean that the list of commits that the pull request covers will change.
- See Also:
- 
Field SummaryFields inherited from class java.util.EventObjectsource
- 
Constructor SummaryConstructorsConstructorDescriptionPullRequestRescopedEvent(Object source, PullRequest pullRequest, String previousFromHash, String previousToHash) PullRequestRescopedEvent(Object source, PullRequest pullRequest, String previousFromHash, String previousToHash, RescopeDetails addedCommits, RescopeDetails removedCommits) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleanbooleanMethods inherited from class com.atlassian.bitbucket.event.pull.PullRequestEventgetAction, getPullRequestMethods inherited from class com.atlassian.bitbucket.event.ApplicationEventgetDate, getUserMethods inherited from class java.util.EventObjectgetSource, toString
- 
Constructor Details- 
PullRequestRescopedEventpublic PullRequestRescopedEvent(@Nonnull Object source, @Nonnull PullRequest pullRequest, @Nonnull String previousFromHash, @Nonnull String previousToHash) 
- 
PullRequestRescopedEventpublic PullRequestRescopedEvent(@Nonnull Object source, @Nonnull PullRequest pullRequest, @Nonnull String previousFromHash, @Nonnull String previousToHash, @Nullable RescopeDetails addedCommits, @Nullable RescopeDetails removedCommits) - Parameters:
- source- the object on which the event initially occurred.
- pullRequest- the rescoped pull request
- previousFromHash- the previous from hash
- previousToHash- the previous to hash
- addedCommits- commits added
- removedCommits- commits removed
- Since:
- 4.5
 
 
- 
- 
Method Details- 
getAddedCommits- Returns:
- details about what commits, if any were added to the scope of the pull request. The
         commits listis limited for performance reasons. UseRescopeDetails.getTotal()to determine the total number of commits that were added to the scope of the pull request. If more commits were added to the scope than are returned in this list, the list will contain the most recent commits that were added. Returnsnullif the scope change hasn't been determined.
- Since:
- 4.5
 
- 
getPreviousFromHash
- 
getPreviousToHash
- 
getRemovedCommits- Returns:
- details about what commits, if any were removed from the scope of the pull request. The
         commits listis limited for performance reasons. UseRescopeDetails.getTotal()to determine the total number of commits that were removed from the scope of the pull request. If more commits were removed from the scope than are returned in this list, the list will contain the most recent commits that were removed. Returnsnullif the scope change hasn't been determined.
- Since:
- 4.5
 
- 
isFromHashUpdatedpublic boolean isFromHashUpdated()- Returns:
- trueif the from-hash has been updated in this scope change.- falseotherwise
- Since:
- 4.5
 
- 
isToHashUpdatedpublic boolean isToHashUpdated()- Returns:
- trueif the to-hash has been updated in this scope change.- falseotherwise
- Since:
- 4.5
 
 
-