public interface

MinimalPullRequest

com.atlassian.bitbucket.scm.pull.MinimalPullRequest

Class Overview

Describes a minimal PullRequest pull request, providing only the ID, version and PullRequestRef refs.

Summary

Public Methods
@Nonnull PullRequestRef getFromRef()
Retrieves the ref that has been requested to be merged.
long getId()
Retrieves the pull request's ID, relative to the target repository.
@Nonnull PullRequestRef getToRef()
Retrieves the ref targeted for the merge, if the pull request is accepted.
int getVersion()
Retrieves the pull request's current version.

Public Methods

@Nonnull public PullRequestRef getFromRef ()

Retrieves the ref that has been requested to be merged.

Returns
  • the ref to be merged

public long getId ()

Retrieves the pull request's ID, relative to the target repository.

Returns
  • the pull request's ID

@Nonnull public PullRequestRef getToRef ()

Retrieves the ref targeted for the merge, if the pull request is accepted.

Returns
  • the merge target

public int getVersion ()

Retrieves the pull request's current version.

Returns
  • the pull request's version