Interface IntegrityCheckContext


public interface IntegrityCheckContext
Allows an SCM to obtain additional information required to perform integrity checks
Since:
4.12
  • Method Summary

    Modifier and Type
    Method
    Description
    getLatestPullRequestId(com.atlassian.bitbucket.repository.Repository repository)
    Allows SCMs to obtain the highest / latest pull request found in the database
    Stream<com.atlassian.bitbucket.repository.Repository>
    Allows SCMs to request a stream 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, or empty() if none have been created
    • getRepositories

      @Nonnull Stream<com.atlassian.bitbucket.repository.Repository> getRepositories()
      Allows SCMs to request a stream of repositories to check for consistency.

      Note: This will only return repositories that belong to the current SCM. SCMs implementations will not receive repositories they do not support.

      Returns:
      a stream of repository instances.