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 astream
of 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
ID
of the latest pull request, orempty()
if none have been created
-
getRepositories
Allows SCMs to request astream
of repositories to check for consistency.Note: This will only return
repositories
that belong to the current SCM. SCMs implementations will not receiverepositories
they do not support.- Returns:
- a
stream
ofrepository
instances.
-