Package com.atlassian.bitbucket.scm.pull
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 Summary
Modifier and TypeMethodDescriptioncom.atlassian.bitbucket.repository.Repository
long
com.atlassian.bitbucket.repository.Repository
-
Method Details
-
getFromRepository
@Nonnull com.atlassian.bitbucket.repository.Repository getFromRepository()- Returns:
- the repository the pull request is opened
from
-
getNewFromHash
- Returns:
- the commit ID the
from-ref
is going to be changed to. Anull
value means that the ref was deleted.
-
getNewToHash
- Returns:
- the commit ID the
to-ref
is going to be changed to. Anull
value means that the ref was deleted.
-
getOldFromHash
- Returns:
- the commit ID the
from-ref
is changed from.
-
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
-