Interface IntegrityCheckContext
public interface IntegrityCheckContext
Allows an SCM to obtain additional information required to perform integrity checks
- Since:
- 4.12
-
Method Summary
Modifier and TypeMethodDescriptiongetLatestPullRequestId(com.atlassian.bitbucket.repository.Repository repository) Allows SCMs to obtain the highest / latest pull request found in the databaseStream<com.atlassian.bitbucket.repository.Repository>Allows SCMs to request astreamof repositories to check for consistency.
-
Method Details
-
getLatestPullRequestId
@Nonnull OptionalLong getLatestPullRequestId(@Nonnull com.atlassian.bitbucket.repository.Repository repository) Allows SCMs to obtain the highest / latest pull request found in the database- Parameters:
repository- the target repository- Returns:
- the
IDof the latest pull request, orempty()if none have been created
-
getRepositories
Allows SCMs to request astreamof repositories to check for consistency.Note: This will only return
repositoriesthat belong to the current SCM. SCMs implementations will not receiverepositoriesthey do not support.- Returns:
- a
streamofrepositoryinstances.
-