Class BitbucketCloudPullRequestRepository
java.lang.Object
com.cloudbees.jenkins.plugins.bitbucket.client.pullrequest.BitbucketCloudPullRequestRepository
- All Implemented Interfaces:
BitbucketPullRequestSource
public class BitbucketCloudPullRequestRepository
extends Object
implements BitbucketPullRequestSource
-
Constructor Summary
ConstructorsConstructorDescriptionBitbucketCloudPullRequestRepository(BitbucketCloudRepository repository, BitbucketCloudBranch branch, BitbucketCloudCommit commit) -
Method Summary
Modifier and TypeMethodDescriptionReturns the type of the source branch.voidsetBranch(BitbucketCloudBranch branch) voidsetCommit(BitbucketCloudCommit commit) voidsetRepository(BitbucketCloudRepository repository)
-
Constructor Details
-
BitbucketCloudPullRequestRepository
public BitbucketCloudPullRequestRepository(BitbucketCloudRepository repository, BitbucketCloudBranch branch, BitbucketCloudCommit commit)
-
-
Method Details
-
getRepository
- Specified by:
getRepositoryin interfaceBitbucketPullRequestSource- Returns:
- source repository
-
setRepository
-
getBranch
- Specified by:
getBranchin interfaceBitbucketPullRequestSource- Returns:
- source branch to be merged in the pull request
-
setBranch
-
getCommit
- Specified by:
getCommitin interfaceBitbucketPullRequestSource- Returns:
- the branch head commit
-
setCommit
-
getBranchType
Description copied from interface:BitbucketPullRequestSourceReturns the type of the source branch.In some server implementations the source HEAD could be a tag.
- Specified by:
getBranchTypein interfaceBitbucketPullRequestSource- Returns:
- the source branch type
-