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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This method is deprecated.
in 6.0 for removal in 7.0. Use
changes(PullRequestChangesCommandParameters, ChangeCallback)
instead.
| |||||||||||
This method is deprecated.
in 6.0 for removal in 7.0. Use
commits(PullRequestCommitsCommandParameters, CommitCallback)
instead.
| |||||||||||
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.
|
This method is deprecated.
in 6.0 for removal in 7.0. Use changes(PullRequestChangesCommandParameters, ChangeCallback)
instead.
parameters | parameters describing how many changes to stream, and potentially for which paths |
---|---|
callback | a callback to receive changes |
parameters | parameters describing how many changes to stream, and potentially for which paths |
---|---|
callback | a callback to receive changes |
This method is deprecated.
in 6.0 for removal in 7.0. Use commits(PullRequestCommitsCommandParameters, CommitCallback)
instead.
callback | a callback to receive commits |
---|
parameters | parameters describing how the commits should be streamed |
---|---|
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
and diff(PullRequestDiffCommandParameters, DiffContentCallback)
should be
retrieved using their respective 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 |
---|