> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tembo.io/llms.txt
> Use this file to discover all available pages before exploring further.

# GitLab

> Merge requests, code scanning, and pipeline monitoring.

<Frame>
  <img src="https://mintcdn.com/test-8862363a/ZNDzs01gTiL6UMVz/images/integrations/gitlab.png?fit=max&auto=format&n=ZNDzs01gTiL6UMVz&q=85&s=164ada62f032bb021ba47a4d2da5b604" alt="GitLab" width="2560" height="1440" data-path="images/integrations/gitlab.png" />
</Frame>

## Features

* Open merge requests with code changes
* Respond to MR feedback and iterate
* Auto-fix failed CI/CD pipelines
* Scan for TODOs, security issues, and tech debt

## Installation

<Steps>
  <Step title="Install">
    Go to [Integrations](https://app.tembo.io/integrations) and click **Install** next to GitLab.
  </Step>

  <Step title="Authorize">
    We recommend creating a dedicated GitLab account for Tembo. Authorize access and select repositories.
  </Step>

  <Step title="Activate">
    Select which repositories Tembo should work with under "Active Repositories".
  </Step>
</Steps>

## Usage

### MR comments

Comment `@tembo` on any merge request to request changes. Works in the main thread or as inline review comments.

```
@tembo Please add error handling to this function
```

Works on MRs created by Tembo and MRs created by your team.

## Agents

See [Agents](/features/agents) for available GitLab event triggers.

### Failed pipelines

Tembo can detect CI/CD pipeline failures and open fix MRs automatically. Set up an [agent](/features/agents) with a pipeline failure trigger.

## Advanced

<AccordionGroup>
  <Accordion title="Repositories not appearing">
    Wait 2-5 minutes for initial sync. Click the sync button on the GitLab integration card to refresh. Check that you granted access during installation.
  </Accordion>

  <Accordion title="@tembo not responding">
    Make sure you're using `@tembo` (lowercase) and that the repository is activated in Integrations.
  </Accordion>

  <Accordion title="MRs not being created">
    Check that the repository is activated and there isn't already an open MR for the same issue.
  </Accordion>
</AccordionGroup>
