com.atlassian.bitbucket.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.
Plugin developers: This is probably not the interface you want to use. 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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Retrieves the effective diff for the pull request.
| |||||||||||
Attempt to merge the pull request to determine what the expected result of actually merging it would be.
|
parameters | parameters describing how many changes to stream, and potentially for which paths |
---|---|
callback | a callback to receive changes |
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,
the commits
, 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 |
---|
Attempt to merge the pull request to determine what the expected result of actually merging it would be.
pullRequest | the pull request to test for merge-ability |
---|