public interface PluginPullRequestCommandFactory
Modifier and Type | Method and Description |
---|---|
com.atlassian.bitbucket.scm.Command<Void> |
bulkRescope(BulkRescopeCommandParameters parameters) |
com.atlassian.bitbucket.scm.Command<Void> |
changes(com.atlassian.bitbucket.pull.PullRequest pullRequest,
com.atlassian.bitbucket.scm.pull.PullRequestChangesCommandParameters parameters,
com.atlassian.bitbucket.content.ChangeCallback callback) |
com.atlassian.bitbucket.scm.Command<Void> |
commits(com.atlassian.bitbucket.pull.PullRequest pullRequest,
com.atlassian.bitbucket.scm.pull.PullRequestCommitsCommandParameters parameters,
com.atlassian.bitbucket.commit.CommitCallback callback) |
default com.atlassian.bitbucket.scm.Command<Void> |
delete(com.atlassian.bitbucket.pull.PullRequest pullRequest,
PullRequestDeleteCommandParameters parameters)
Deletes repository data associated with the specified pull request.
|
com.atlassian.bitbucket.scm.Command<Void> |
diff(com.atlassian.bitbucket.pull.PullRequest pullRequest,
com.atlassian.bitbucket.scm.pull.PullRequestDiffCommandParameters parameters,
com.atlassian.bitbucket.content.DiffContentCallback callback) |
com.atlassian.bitbucket.scm.Command<com.atlassian.bitbucket.scm.pull.PullRequestEffectiveDiff> |
effectiveDiff(com.atlassian.bitbucket.pull.PullRequest pullRequest) |
com.atlassian.bitbucket.scm.Command<com.atlassian.bitbucket.repository.Branch> |
merge(com.atlassian.bitbucket.pull.PullRequest pullRequest,
com.atlassian.bitbucket.scm.pull.PullRequestMergeCommandParameters parameters) |
com.atlassian.bitbucket.scm.Command<com.atlassian.bitbucket.pull.PullRequestMergeResult> |
tryMerge(com.atlassian.bitbucket.pull.PullRequest pullRequest)
Attempt to merge the pull request to determine what the expected result of actually merging it would be.
|
default com.atlassian.bitbucket.scm.Command<Void> |
updateRefs(UpdatePullRequestRefsCommandParameters parameters)
Implementors: The default implementation of this method will be removed in 9.0.
|
@Nonnull com.atlassian.bitbucket.scm.Command<Void> bulkRescope(@Nonnull BulkRescopeCommandParameters parameters)
parameters
- describes the repository and provides a context for the command to use to retrieve
affected rescopes and apply updates@Nonnull com.atlassian.bitbucket.scm.Command<Void> changes(@Nonnull com.atlassian.bitbucket.pull.PullRequest pullRequest, @Nonnull com.atlassian.bitbucket.scm.pull.PullRequestChangesCommandParameters parameters, @Nonnull com.atlassian.bitbucket.content.ChangeCallback callback)
pullRequest
- the pull request to stream changes forparameters
- parameters describing the changes to streamcallback
- a callback to receive changes@Nonnull com.atlassian.bitbucket.scm.Command<Void> commits(@Nonnull com.atlassian.bitbucket.pull.PullRequest pullRequest, @Nonnull com.atlassian.bitbucket.scm.pull.PullRequestCommitsCommandParameters parameters, @Nonnull com.atlassian.bitbucket.commit.CommitCallback callback)
pullRequest
- describes the refs being comparedparameters
- parameters providing context for the pull request commitscallback
- a callback to receive commits which are unique to the from ref
from
ref
which are not referenced by the to ref
@Nonnull default com.atlassian.bitbucket.scm.Command<Void> delete(@Nonnull com.atlassian.bitbucket.pull.PullRequest pullRequest, @Nonnull PullRequestDeleteCommandParameters parameters)
SCMs must not delete the from
or to
refs.
This command is intended to delete any internal, SCM-specific data the SCM tracks for pull requests. For
example, if an SCM maintains additional commits or merges, or cached data such as change, diff or conflict
details used to speed up other operations, or extra refs used to allow that data to be fetched, those are the
types of data implementations of this command should remove.
Even if an SCM does not track any additional data beyond the refs involved in the pull request, the returned
Command
must be non-null
. Such SCMs may wish to leverage the default implementation, which
returns a command that does nothing when called.
pullRequest
- the pull request to deleteparameters
- parameters providing context for the deleted pull request@Nonnull com.atlassian.bitbucket.scm.Command<Void> diff(@Nonnull com.atlassian.bitbucket.pull.PullRequest pullRequest, @Nonnull com.atlassian.bitbucket.scm.pull.PullRequestDiffCommandParameters parameters, @Nonnull com.atlassian.bitbucket.content.DiffContentCallback callback)
@Nonnull com.atlassian.bitbucket.scm.Command<com.atlassian.bitbucket.scm.pull.PullRequestEffectiveDiff> effectiveDiff(@Nonnull com.atlassian.bitbucket.pull.PullRequest pullRequest)
@Nonnull com.atlassian.bitbucket.scm.Command<com.atlassian.bitbucket.repository.Branch> merge(@Nonnull com.atlassian.bitbucket.pull.PullRequest pullRequest, @Nonnull com.atlassian.bitbucket.scm.pull.PullRequestMergeCommandParameters parameters)
@Nonnull com.atlassian.bitbucket.scm.Command<com.atlassian.bitbucket.pull.PullRequestMergeResult> tryMerge(@Nonnull com.atlassian.bitbucket.pull.PullRequest pullRequest)
result
with
UNKNOWN outcome
may be used to indicated that the merge
was not attempted or some unexpected error occurred while attempting the merge.pullRequest
- the pull request for which a dry run merge should be performed@Nonnull default com.atlassian.bitbucket.scm.Command<Void> updateRefs(@Nonnull UpdatePullRequestRefsCommandParameters parameters)
parameters
- provides the pull requests for which the pull request refs should be brought into sync with
the current pull request stateCopyright © 2024 Atlassian. All rights reserved.