Skip to content

repo-updater: ignore bitbucket servers which do not support labels

Warren Gifford requested to merge core/bitbucket-label-404 into master

Created by: keegancsmith

Bitbucket Server labels were only released in version 5.13. However, we always query for the "archived" label when syncing. This leads us to failing to sync on versions before 5.13. We now handle the 404. Example error message:

  External service updated, but we encountered a problem while validating the
  external service: failed to list repos with archived label: Bitbucket API
  HTTP error: code=404
  url="https://example-bitbucket.com/rest/api/1.0/labels/archived/labeled?REPOSITORY=&limit=1000"
  body="404null for uri:
  https://example-bitbucket.com/rest/api/1.0/labels/archived/labeled?REPOSITORY=&limit=1000"

Fixes https://github.com/sourcegraph/sourcegraph/issues/8883

Merge request reports

Loading