OmniRush Work docs

GitLab

Connect GitLab.com or a self-managed GitLab with an access token. OmniRush reads issues, merge requests, failed pipelines and docs, and acts only after you approve.

Connects with
Access token (personal, group or project)
Who connects
Each person
Reads
Issues, merge requests, comments, failed pipelines and docs files in the projects your token can see
Acts
Comments and creates issues after you approve, with a token that has the api scope
Admin approval
Not needed
On this page
  1. What OmniRush reads
  2. What the agent can do
  3. Connect GitLab
  4. Permissions
  5. For admins
  6. Disconnect and remove data
  7. Troubleshooting

What OmniRush reads

  • Projects your token is a member of, up to 1,000, most recently active first. Archived projects are skipped.
  • Issues and merge requests updated in the last 365 days, each with up to 100 of its newest comments.
  • Failed pipelines on the default branch from the last 30 days.
  • Docs files on the default branch (Markdown and text, plus README, CHANGELOG and CONTRIBUTING files), up to 200 per project and 1 MB each.

After the first sync, OmniRush reads changes about every 10 minutes. Docs are read again only when the default branch gets a new commit.

Merge requests that request your review show under Needs you in Today as Review requested. So do recent mentions and open issues assigned to you that are due within 3 days.

What the agent can do

ActionWhat it does
Search GitLabSearches issues, merge requests or code in one project. Without a project, on GitLab.com, it searches the groups your token is in.
Read an issue, merge request, pipeline or fileReads an issue or merge request with its comments, a pipeline with its jobs, or a file by its path.
Add a commentAsks firstComments on an issue or merge request in Markdown, under the token's user.
Create an issueAsks firstCreates an issue in a project, with labels if you name them.

Each comment and new issue shows an approval card first, unless you turned on Allow all writes (stop asking) on the Automation page. See Approvals.

Writes need a token with the api scope and a project role that allows them. In the side panel, an issue or merge request has Comment.

Connect GitLab

  1. Create a token in GitLab

    In GitLab, click your avatar, open Edit profile, then Access tokens, and add a token with read_api. Pick api instead if the agent may comment and create issues after you approve. A group or project access token works too.

  2. Open Connectors

    In the Work sidebar, click + (Add a connector) next to Connectors.

  3. Click Connect on the GitLab row

    A form opens under the row. Show me where opens GitLab's help page for tokens.

  4. Enter your GitLab address

    Leave GitLab address (empty for gitlab.com) empty for GitLab.com. For your company's own GitLab, enter its address, such as gitlab.example.com.

  5. Paste the token

    Paste it into Access token.

  6. Click Test and save

    OmniRush checks the token and its scopes before it saves it. When it works, the app shows GitLab is connected. The first sync has started.

Permissions

Give the token one of these scopes when you create it.

read_api
Reads projects, issues, merge requests, pipelines and files. Enough for a read-only connection.
api
Also lets the agent comment and create issues, only after you approve. Use it instead of read_api.

The token reads only what its user, group or project can see. OmniRush stores it encrypted, and nothing is posted or created without your approval.

For admins

Each person connects with their own token. There is no app to approve, and nobody else in your company sees what a person's token reads.

A self-managed GitLab must be reachable from the internet over HTTPS. OmniRush doesn't connect to private network addresses, and it checks the server's certificate.

GitLab access tokens expire. On GitLab Free and Premium, a token lasts at most 365 days. When it expires, the person makes a new token and reconnects.

To hide GitLab from your team, open Connectors in the admin portal and turn off the switch on the GitLab row. Existing connections pause and keep their data, as Team tools explains.

Disconnect and remove data

  1. Open Connectors in the desktop app.
  2. Open the menu on the GitLab row and click Disconnect.
  3. Confirm with Disconnect.

OmniRush deletes the stored token and stops syncing. To end the access in GitLab too, revoke the token under Access tokens.

Items already synced stay in Knowledge and search. To have them deleted, email [email protected]. See the Privacy Policy.

Troubleshooting

What you seeWhat to do
No GitLab answered at that address. Leave it empty for gitlab.com, or check your company's GitLab address.Check the address. Use the address you open GitLab at, without a path to a project.
That token cannot read GitLab's API. Make one with the read_api scope, or api to also comment and create issues.Create a token with read_api or api, then connect with it.
The service did not accept that key. Copy it again, all of it.Copy the whole token and paste it again. If you lost it, create a new one.
That server address is not allowed. Use the provider's public address.Your GitLab address points to a private network. Use an address that is reachable from the internet.
Could not reach the server. Check its address and port.Check the address and that your GitLab answers from outside your network.
GitLab needs reconnecting. Sync stopped and results may be out of date.The token expired or was revoked. Create a new one, click Reconnect and paste it.
A comment or new issue failsThe token has only read_api, or your project role can't do that. Create a token with api and reconnect.
Too many tries. Wait a few minutes and try again.Wait a few minutes before you click Test and save again.