Documentation

Connect GitLab

Deploy from gitlab.com or your self-managed GitLab with OAuth or an access token, with push webhooks, commit statuses and merge request previews.

Rebasable works with gitlab.com and any self-managed GitLab reachable over https. Linked projects deploy on every push, merge requests can get a preview with a comment holding its URL, and each pipeline shows a rebasable/<service> commit status.

Connect your account

Open Settings → Git providers and click Connect on the GitLab card. Pick gitlab.com or Self-managed and enter your instance URL (for example https://gitlab.example.com). Then choose how to sign in:

OAuth (one click for the whole team)

Click Continue with GitLab and approve Rebasable. On gitlab.com this works right away. On a self-managed instance a team admin registers an OAuth application once:

  1. On your GitLab, open User settings → Applications (or Admin → Applications for an instance-wide app) and add a new application.

  2. Redirect URI:

    https://dashboard.rebasable.com/api/v1/git/oauth/gitlab/callback
  3. Scopes: api and read_user. Leave it Confidential.

  4. Paste the Application ID and Secret into the Connect dialog and click Save OAuth app. Everyone on the team can now connect in one click.

The dialog shows the exact redirect URI with a copy button, so you never have to type it.

Access token

Choose Access token and paste a personal, project or group access token with the api scope. Create one under User settings → Access tokens (or the project or group’s Settings → Access tokens). Project and group tokens are handy for bots: they are not tied to a person.

Deploy a project

In New service, pick GitLab, choose the account, search the project (subgroups like group/sub/app work) and pick a branch.

When you link a project, Rebasable adds a project webhook for push and merge request events, verified with a secret token. This needs the Maintainer role on the project. If the hook can’t be added, the service checks the branch every 60 seconds instead and Settings → Source shows why.

From the CLI:

rebasable git connect gitlab --url https://gitlab.example.com --access-token glpat-xxxx
rebasable services create --repo gitlab:acme/platform/api --branch main

Without connecting an account

Any GitLab URL also works as a plain Git URL: public projects with no setup, private ones with a read-only deploy key. You get polling every 60 seconds instead of webhooks, and no merge request previews.

Troubleshooting

  • 301 or redirect errors on clone: use the canonical project URL. Rebasable adds .git for gitlab.com automatically.
  • No webhook was registered: you need Maintainer on the project, or a token with the api scope.
  • Merge request previews don’t appear: set Pull request previews to Automatic (or add [preview] to the MR title in Manual mode). Previews are never built for merge requests from forks.