public interface

PullRequestRescope

com.atlassian.bitbucket.scm.pull.PullRequestRescope

Class Overview

Describes how a com.atlassian.bitbucket.pull.PullRequest pull request is going to be rescoped. As part of pull request rescoping, the system will determine how a pull request needs to be rescoped and request the SCM to analyse how these changes will affect the pull request.

Summary

Public Methods
@Nonnull Repository getFromRepository()
@Nullable String getNewFromHash()
@Nullable String getNewToHash()
@Nonnull String getOldFromHash()
@Nonnull String getOldToHash()
@Nonnull Repository getToRepository()

Public Methods

@Nonnull public Repository getFromRepository ()

Returns
  • the repository the pull request is opened from

@Nullable public String getNewFromHash ()

Returns
  • the commit ID the from-ref is going to be changed to. A null value means that the ref was deleted.

@Nullable public String getNewToHash ()

Returns
  • the commit ID the to-ref is going to be changed to. A null value means that the ref was deleted.

@Nonnull public String getOldFromHash ()

Returns
  • the commit ID the from-ref is changed from.

@Nonnull public String getOldToHash ()

Returns
  • the commit ID the to-ref is changed from.

@Nonnull public Repository getToRepository ()

Returns
  • the repository the pull request is targeting