public interface GitPullRequestCommandFactory
extends com.atlassian.bitbucket.scm.pull.PluginPullRequestCommandFactory
PluginPullRequestCommandFactory
interface and returns GitCommand
instances instead of simple Command
or AsyncCommand
instances. This allows commands created by this
factory to be used synchronously or asynchronously at the caller's discretion, rather than fixing execution to one
approach or the other.
This interface does not add any commands to the standard interface. It only covariantly adjusts their return types.
Modifier and Type | Method and Description |
---|---|
GitCommand<Void> |
bulkRescope(com.atlassian.bitbucket.scm.pull.BulkRescopeCommandParameters parameters) |
GitCommand<Void> |
changes(com.atlassian.bitbucket.pull.PullRequest pullRequest,
com.atlassian.bitbucket.scm.pull.PullRequestChangeCommandParameters parameters,
com.atlassian.bitbucket.content.ChangeCallback callback)
Deprecated.
in 6.0 for removal in 7.0. Use
changes(PullRequest, PullRequestChangesCommandParameters, ChangeCallback) instead. |
GitCommand<Void> |
changes(com.atlassian.bitbucket.pull.PullRequest pullRequest,
com.atlassian.bitbucket.scm.pull.PullRequestChangesCommandParameters parameters,
com.atlassian.bitbucket.content.ChangeCallback callback) |
GitCommand<Void> |
commits(com.atlassian.bitbucket.pull.PullRequest pullRequest,
com.atlassian.bitbucket.commit.CommitCallback callback)
Deprecated.
in 6.0 for removal in 7.0. Use
commits(PullRequest, PullRequestCommitsCommandParameters, CommitCallback) instead. |
GitCommand<Void> |
commits(com.atlassian.bitbucket.pull.PullRequest pullRequest,
com.atlassian.bitbucket.scm.pull.PullRequestCommitsCommandParameters parameters,
com.atlassian.bitbucket.commit.CommitCallback callback) |
GitCommand<Void> |
delete(com.atlassian.bitbucket.pull.PullRequest pullRequest,
com.atlassian.bitbucket.scm.pull.PullRequestDeleteCommandParameters parameters) |
GitCommand<Void> |
diff(com.atlassian.bitbucket.pull.PullRequest pullRequest,
com.atlassian.bitbucket.scm.pull.PullRequestDiffCommandParameters parameters,
com.atlassian.bitbucket.content.DiffContentCallback callback) |
GitCommand<com.atlassian.bitbucket.scm.pull.PullRequestEffectiveDiff> |
effectiveDiff(com.atlassian.bitbucket.pull.PullRequest pullRequest) |
GitCommand<com.atlassian.bitbucket.repository.Branch> |
merge(com.atlassian.bitbucket.pull.PullRequest pullRequest,
com.atlassian.bitbucket.scm.pull.PullRequestMergeCommandParameters parameters) |
GitCommand<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.
|
@Nonnull GitCommand<Void> bulkRescope(@Nonnull com.atlassian.bitbucket.scm.pull.BulkRescopeCommandParameters parameters)
bulkRescope
in interface com.atlassian.bitbucket.scm.pull.PluginPullRequestCommandFactory
parameters
- describes the repository and provides a context for the command to use to retrieve
the rescopes and apply updates@Deprecated @Nonnull GitCommand<Void> changes(@Nonnull com.atlassian.bitbucket.pull.PullRequest pullRequest, @Nonnull com.atlassian.bitbucket.scm.pull.PullRequestChangeCommandParameters parameters, @Nonnull com.atlassian.bitbucket.content.ChangeCallback callback)
changes(PullRequest, PullRequestChangesCommandParameters, ChangeCallback)
instead.changes
in interface com.atlassian.bitbucket.scm.pull.PluginPullRequestCommandFactory
pullRequest
- the pull request to retrieve the change tree forparameters
- parameters controlling which changes are returnedcallback
- a callback to receive the changes@Nonnull GitCommand<Void> changes(@Nonnull com.atlassian.bitbucket.pull.PullRequest pullRequest, @Nonnull com.atlassian.bitbucket.scm.pull.PullRequestChangesCommandParameters parameters, @Nonnull com.atlassian.bitbucket.content.ChangeCallback callback)
changes
in interface com.atlassian.bitbucket.scm.pull.PluginPullRequestCommandFactory
pullRequest
- the pull request to retrieve the change tree forparameters
- parameters controlling which changes are returnedcallback
- a callback to receive the changes@Deprecated @Nonnull GitCommand<Void> commits(@Nonnull com.atlassian.bitbucket.pull.PullRequest pullRequest, @Nonnull com.atlassian.bitbucket.commit.CommitCallback callback)
commits(PullRequest, PullRequestCommitsCommandParameters, CommitCallback)
instead.commits
in interface com.atlassian.bitbucket.scm.pull.PluginPullRequestCommandFactory
pullRequest
- the pull request to retrieve commits forcallback
- a callback to receive the commits@Nonnull GitCommand<Void> commits(@Nonnull com.atlassian.bitbucket.pull.PullRequest pullRequest, @Nonnull com.atlassian.bitbucket.scm.pull.PullRequestCommitsCommandParameters parameters, @Nonnull com.atlassian.bitbucket.commit.CommitCallback callback)
commits
in interface com.atlassian.bitbucket.scm.pull.PluginPullRequestCommandFactory
pullRequest
- the pull request to retrieve commits forparameters
- parameters controlling how commits are streamedcallback
- a callback to receive the commits@Nonnull GitCommand<Void> delete(@Nonnull com.atlassian.bitbucket.pull.PullRequest pullRequest, @Nonnull com.atlassian.bitbucket.scm.pull.PullRequestDeleteCommandParameters parameters)
delete
in interface com.atlassian.bitbucket.scm.pull.PluginPullRequestCommandFactory
pullRequest
- the pull request to deleteparameters
- parameters providing context for the deleted pull request@Nonnull GitCommand<Void> diff(@Nonnull com.atlassian.bitbucket.pull.PullRequest pullRequest, @Nonnull com.atlassian.bitbucket.scm.pull.PullRequestDiffCommandParameters parameters, @Nonnull com.atlassian.bitbucket.content.DiffContentCallback callback)
diff
in interface com.atlassian.bitbucket.scm.pull.PluginPullRequestCommandFactory
pullRequest
- the pull request to retrieve diffs forparameters
- parameters controlling which diffs are returned, and how muchcallback
- a callback to receive the diff output@Nonnull GitCommand<com.atlassian.bitbucket.scm.pull.PullRequestEffectiveDiff> effectiveDiff(@Nonnull com.atlassian.bitbucket.pull.PullRequest pullRequest)
effectiveDiff
in interface com.atlassian.bitbucket.scm.pull.PluginPullRequestCommandFactory
pullRequest
- the pull request to resolve the effective diff for@Nonnull GitCommand<com.atlassian.bitbucket.repository.Branch> merge(@Nonnull com.atlassian.bitbucket.pull.PullRequest pullRequest, @Nonnull com.atlassian.bitbucket.scm.pull.PullRequestMergeCommandParameters parameters)
merge
in interface com.atlassian.bitbucket.scm.pull.PluginPullRequestCommandFactory
pullRequest
- the pull request to mergeparameters
- parameters controlling how the pull request is merged@Nonnull GitCommand<com.atlassian.bitbucket.pull.PullRequestMergeResult> tryMerge(@Nonnull com.atlassian.bitbucket.pull.PullRequest pullRequest)
tryMerge
in interface com.atlassian.bitbucket.scm.pull.PluginPullRequestCommandFactory
pullRequest
- the pull request to test for merge-abilityCopyright © 2019 Atlassian. All rights reserved.