Skip to content

Search titles and text across the docs.

Connect GitLab or Bitbucket

Link a GitLab.com group or personal namespace, or a Bitbucket Cloud workspace, by signing in with the provider and choosing repositories.

Where in the portalConnections

Updated View as markdown

Link a GitLab.com group or personal namespace, or a Bitbucket Cloud workspace, by signing in with the provider and then choosing repositories. Organization owners and admins manage these connections from Connections, the same page as GitHub.

Self-managed GitLab and Bitbucket Data Center are not supported. Kelrova talks only to GitLab.com and Bitbucket Cloud.

What a connection is

A connection is your organization's link to one namespace at one provider: a GitLab group or personal namespace, or a Bitbucket workspace. Its credential is your own authorization at the provider, given when you sign in. Kelrova can use only what that authorization allows.

  1. Choose the provider

    Open Connections and choose GitLab or Bitbucket.

  2. Sign in with the provider

    Approve Kelrova on the provider's consent page. You return to Connections.

  3. Pick the repositories

    Choose the repositories Kelrova may read. Kelrova asks for a fresh sign-in before it links them.

The Connections page, Git providers: GitHub connected for the northwind account, GitLab and Bitbucket available to connect.
The Connections page with GitHub linked; GitLab and Bitbucket are connected from the same page.

Which namespaces you are offered

GitLab.comBitbucket Cloud
OfferedGroups where you are Maintainer or above, and your personal namespaceWorkspaces where you are an admin, or a member with repository admin
Needed to open pull requestsThe granted scope includes api, and you hold Developer or more on the group, or own the personal namespaceWrite or admin permission on the workspace and repository
Draft pull requestsMarked with a Draft: title prefixMarked with the provider's draft field

Scans only read the code. Kelrova writes only when a member asks Go Fix to open a pull request.

Differences from GitHub

  • Check runs are not supported on either provider. Commit statuses are.
  • The first fix commit, its draft pull request, status, merge and comment are supported on both providers. A follow-up round that moves an existing fix branch to a new commit is not.
  • Kelrova registers a webhook for each repository when it is linked. If the credential cannot create one, the repository stays linked and pull request state refreshes when it is read. GitLab needs Maintainer for this; Bitbucket needs the webhook scope and repository admin.

If the connection needs attention

Because the credential is a person's authorization, it can stop working without anyone changing Kelrova:

  • You revoked the application on the provider.
  • The person who linked it no longer has permission to manage connections in your organization. Removing a member is never blocked because of this.

The connection then shows as needing attention. New scans are blocked and running work is not cancelled. Admins get an email and a portal notice, at most once per kind and day.

To restore it, an admin opens the connection, chooses reconnect and completes the provider's consent and the fresh sign-in. Grants, code sources and webhooks are kept.

Unlinking a connection removes its webhooks, as far as the provider allows, and its stored credential.

Next

Add a code source on one of the linked repositories.