Interface PullRequestRescope


public interface PullRequestRescope
Describes how a 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.
Since:
4.5
See Also:
  • Method Details

    • getFromRepository

      @Nonnull com.atlassian.bitbucket.repository.Repository getFromRepository()
      Returns:
      the repository the pull request is opened from
    • getNewFromHash

      @Nullable String getNewFromHash()
      Returns:
      the commit ID the from-ref is going to be changed to. A null value means that the ref was deleted.
    • getNewToHash

      @Nullable String getNewToHash()
      Returns:
      the commit ID the to-ref is going to be changed to. A null value means that the ref was deleted.
    • getOldFromHash

      @Nonnull String getOldFromHash()
      Returns:
      the commit ID the from-ref is changed from.
    • getOldToHash

      @Nonnull String getOldToHash()
      Returns:
      the commit ID the to-ref is changed from.
    • getPullRequestId

      long getPullRequestId()
      Returns:
      the pull request ID
      Since:
      7.12
    • getToRepository

      @Nonnull com.atlassian.bitbucket.repository.Repository getToRepository()
      Returns:
      the repository the pull request is targeting