> For the complete documentation index, see [llms.txt](https://docs.pagerly.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pagerly.io/sre-ai-agent/data-sources/gitlab.md).

# GitLab

## What the Agent Can Do

* Search code across repositories
* List recent merge requests and pipeline status
* Find recent deployments and commits

## Setup Instructions

1. Log into your **GitLab instance**
2. Create an access token with `api` scope:
   * **Personal token:** User Settings > Access Tokens
   * **Group token (recommended for enterprise):** Group > Settings > Access Tokens
   * **Project token:** Project > Settings > Access Tokens
3. Name it `Pagerly`, set an expiration date
4. Click **Create** and copy the token

## Required Credentials

| Field            | Description                                               | Example     |
| ---------------- | --------------------------------------------------------- | ----------- |
| **Access Token** | Personal, group, or project access token with `api` scope | `glpat-...` |

## Context Prompt Tips

> *"Main repos: group/api, group/frontend. Production branch is main. CI/CD pipelines are in .gitlab-ci.yml."*

## Docs

* [GitLab REST API](https://docs.gitlab.com/ee/api/rest/)
