@AsynchronousPreferred
public class GitPullRequestRefsChangedEvent
extends com.atlassian.bitbucket.event.ApplicationEvent
GitPullRequestRefsChangedEvent
is raised.source
Constructor and Description |
---|
GitPullRequestRefsChangedEvent(Object source,
com.atlassian.bitbucket.pull.PullRequest pullRequest,
com.atlassian.bitbucket.repository.RefChange fromRefChange,
com.atlassian.bitbucket.repository.RefChange mergeRefChange) |
Modifier and Type | Method and Description |
---|---|
com.atlassian.bitbucket.repository.RefChange |
getFromRefChange() |
com.atlassian.bitbucket.repository.RefChange |
getMergeRefChange() |
com.atlassian.bitbucket.pull.PullRequest |
getPullRequest() |
com.atlassian.bitbucket.repository.Repository |
getRepository() |
boolean |
hasFromRefChanged() |
boolean |
hasMergeRefChanged() |
getSource, toString
@Nullable public com.atlassian.bitbucket.repository.RefChange getFromRefChange()
/pull-requests/id/from
ref has changed. null
if the ref
did not change@Nullable public com.atlassian.bitbucket.repository.RefChange getMergeRefChange()
/pull-requests/id/merge
ref has changed. null
if the
ref did not change@Nonnull public com.atlassian.bitbucket.pull.PullRequest getPullRequest()
@Nonnull public com.atlassian.bitbucket.repository.Repository getRepository()
public boolean hasFromRefChanged()
true
if the /pull-requests/id/from
ref has changedpublic boolean hasMergeRefChanged()
true
if the /pull-requests/id/merge
ref has changedCopyright © 2019 Atlassian. All rights reserved.