public interface

PluginPullRequestCommandFactory

com.atlassian.stash.scm.pull.PluginPullRequestCommandFactory
Known Indirect Subclasses

Summary

Public Methods
@Nonnull Command<Boolean> canMerge(PullRequest pullRequest)
@Nonnull Command<Void> changes(PullRequest pullRequest, PullRequestChangeCommandParameters parameters, ChangeCallback callback)
@Deprecated @Nonnull Command<Void> commits(PullRequest pullRequest, ChangesetCallback callback)
This method is deprecated. in 3.7 for removal in 4.0. All things "changeset" are being renamed to "commit", the more common term for the data they represent. This method will be replaced by commits(PullRequest, CommitCallback) in 4.0.
@Nonnull Command<Void> diff(PullRequest pullRequest, PullRequestDiffCommandParameters parameters, DiffContentCallback callback)
@Nonnull Command<PullRequestEffectiveDiff> effectiveDiff(PullRequest pullRequest)
@Nonnull Command<Branch> merge(PullRequest pullRequest, PullRequestMergeCommandParameters parameters)
@Nonnull Command<Void> rescope(RepositoryRescopeCommandParameters parameters)

Public Methods

@Nonnull public Command<Boolean> canMerge (PullRequest pullRequest)

@Nonnull public Command<Void> changes (PullRequest pullRequest, PullRequestChangeCommandParameters parameters, ChangeCallback callback)

@Deprecated @Nonnull public Command<Void> commits (PullRequest pullRequest, ChangesetCallback callback)

This method is deprecated.
in 3.7 for removal in 4.0. All things "changeset" are being renamed to "commit", the more common term for the data they represent. This method will be replaced by commits(PullRequest, CommitCallback) in 4.0.

Parameters
pullRequest describes the refs being compared
callback a callback to receive commits which are unique to the from ref
Returns
  • a command which, when executed, will stream commits referenced by the from ref which are not referenced by the to ref

@Nonnull public Command<Void> diff (PullRequest pullRequest, PullRequestDiffCommandParameters parameters, DiffContentCallback callback)

@Nonnull public Command<PullRequestEffectiveDiff> effectiveDiff (PullRequest pullRequest)

@Nonnull public Command<Branch> merge (PullRequest pullRequest, PullRequestMergeCommandParameters parameters)

@Nonnull public Command<Void> rescope (RepositoryRescopeCommandParameters parameters)

Parameters
parameters describes the repository and ref changes, as well as providing a context for the command to use to retrieve affected pull requests and apply updates
Returns
  • a command which, when called, will rescope any pull requests affected by ref changes in the specified repository