Skip to main content

GitLab Integration

Connect GitLab to enable the AI agent to access code, merge requests, and CI/CD pipeline information during investigations.

Capabilities

Once connected, the AI agent can:
CapabilityDescription
Browse CodeView repository files
Merge RequestsReview MRs and changes
PipelinesCheck CI/CD pipeline status
CommitsView commit history
IssuesAccess issue tracking

Prerequisites

  • A GitLab account (Cloud or self-hosted)
  • A Personal Access Token
  • Read access to relevant projects

Setup

1

Create a Personal Access Token

  1. Go to GitLab User SettingsAccess Tokens
  2. Enter a token name (e.g., “AccelOS Integration”)
  3. Set an expiration date
  4. Select scopes: read_api, read_repository
  5. Create and copy the token
2

Add Integration in AccelOS

  1. Go to Integrations in AccelOS
  2. Click GitLab
  3. Enter a name (e.g., “Production GitLab”)
3

Configure Credentials

Enter the following:
  • Token: Your GitLab Personal Access Token
  • URL: GitLab URL (default: https://gitlab.com)
4

Test and Save

Click Test Connection to verify, then Save.

Required Scopes

ScopeWhy It’s Needed
read_apiAccess GitLab API endpoints
read_repositoryView repository contents

Self-Hosted GitLab

For self-hosted GitLab instances:
https://gitlab.your-company.com
Ensure the URL is accessible from AccelOS.

Example Queries

What pipelines failed in the last 24 hours?
Show me the latest merge requests for the backend project
What commits were deployed yesterday?

Troubleshooting

  • Verify the token is correct and not expired
  • Check that required scopes are granted
  • Verify the GitLab URL is correct
  • Check network/firewall accessibility