@AsynchronousPreferred public class PullRequestRescopedEvent extends PullRequestEvent
source
Constructor and Description |
---|
PullRequestRescopedEvent(Object source,
PullRequest pullRequest,
String previousFromHash,
String previousToHash) |
PullRequestRescopedEvent(Object source,
PullRequest pullRequest,
String previousFromHash,
String previousToHash,
RescopeDetails addedCommits,
RescopeDetails removedCommits) |
Modifier and Type | Method and Description |
---|---|
RescopeDetails |
getAddedCommits() |
String |
getPreviousFromHash() |
String |
getPreviousToHash() |
RescopeDetails |
getRemovedCommits() |
boolean |
isFromHashUpdated() |
boolean |
isToHashUpdated() |
getAction, getPullRequest
getDate, getUser
getSource, toString
public PullRequestRescopedEvent(@Nonnull Object source, @Nonnull PullRequest pullRequest, @Nonnull String previousFromHash, @Nonnull String previousToHash)
public PullRequestRescopedEvent(@Nonnull Object source, @Nonnull PullRequest pullRequest, @Nonnull String previousFromHash, @Nonnull String previousToHash, @Nullable RescopeDetails addedCommits, @Nullable RescopeDetails removedCommits)
source
- the object on which the event initially occurred.pullRequest
- the rescoped pull requestpreviousFromHash
- the previous from hashpreviousToHash
- the previous to hashaddedCommits
- commits addedremovedCommits
- commits removed@Nullable public RescopeDetails getAddedCommits()
commits list
is limited for performance reasons. Use
RescopeDetails.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. Returns null
if the scope change
hasn't been determined.@Nullable public RescopeDetails getRemovedCommits()
commits list
is limited for performance reasons. Use
RescopeDetails.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. Returns null
if the scope change
hasn't been determined.public boolean isFromHashUpdated()
true
if the from-hash has been updated in this scope change. false
otherwisepublic boolean isToHashUpdated()
true
if the to-hash has been updated in this scope change. false
otherwiseCopyright © 2021 Atlassian. All rights reserved.