| com.atlassian.stash.scm.pull.ScmPullRequestCommandFactory |
Creates commands which provide pull request functionality. Each method accepts a set of
CommandParameters which are used to control the command's behaviour and output.
PullRequestService
automatically chooses the correct SCM based on the repository, and provides a more stable, compatible API. The
documentation for each method on this interface includes a link to the API service method or methods which expose it.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
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(CommitCallback) in 4.0.
| |||||||||||
Retrieves the effective diff for the pull request.
| |||||||||||
true if the pull request can be merged
cleanly by the SCM or false if there are conflicts or other SCM-specific issues which prevent the
SCM from merging it
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(CommitCallback) in 4.0.
| callback | a callback to receive commits |
|---|
| callback | a callback to receive commits |
|---|
| parameters | parameters describing the paths to diff and what should be included in the diffs generated |
|---|---|
| callback | a callback to receive the diff |
Retrieves the effective diff for the pull request. The "effective diff" is comprised of the two commits that should be compared to get a view of what changes the pull request includes. When new commits are added to either of the branches involved in a pull request, the pull request's effective diff may change.
Note: This method is not exposed via the service API. It is only available directly on the SCM API. The effective diff is something plugin developers generally do not need to be explicitly aware of. Instead, thecommits, changes(PullRequestChangeCommandParameters, ChangeCallback) and diff(PullRequestDiffCommandParameters, DiffContentCallback) should be retrieved using
their commands.commit IDs which describe the pull request's current effective diff
| parameters | parameters describing additional context which an SCM may consider when merging the pull request, potentially altering the way final shape of the merge |
|---|