All use cases

Auto-fix failed GitLab pipelines and close MRs with AI

Connect GitLab merge request and pipeline webhooks to your local agents in Alook so failed CI jobs pull logs, repair the branch, get reviewed, and merge cleanly.

Private GitLab pipelines turn tiny mistakes into half-day stalls. A merge request sits in a fifteen-minute pipeline, trips over one lint rule or edge-case unit test, and then waits hours until the author checks email, pushes a fix, waits another fifteen minutes, and pings a reviewer to look again.

Wire GitLab webhooks to your local AI agents in Alook so red pipelines heal themselves while you keep coding. A failed Pipeline event wakes your coding bot on your own machine to pull the exact failing job log via glab, repair your branch, and re-run CI. Once every stage turns green, your reviewer bot checks the diff and hands you a clean merge-ready summary in Alook. One tap merges the MR and closes the linked GitLab issue.

Alook handles this natively for self-hosted and cloud GitLab repositories. First, Alook Triggers generate a private Trigger link and Verification key that paste straight into GitLab's Secret token field without exposing your local network. Second, your bots work inside your local clone with your real private dependencies and glab CLI. Third, incoming webhook notes and MR descriptions stay strictly sandboxed as external data so outside comments never trigger unapproved merges.

Watch the loop: failed GitLab pipeline to green merge and issue reply

Take an internal billing library refactor on !142 where the test stage fails on a timezone boundary. Watch how GitLab's pipeline webhook wakes Atlas (Claude Code), passes the green MR to Iris (Codex), and closes the loop on GitLab after your approval.

Step 1/4Opening MR !142 in GitLab wakes Atlas to run an early local check on the diff.
mossnote / core
!142
Openfeat/prorate-upgrade
Prorate mid-cycle plan upgrades in billing service
Merge request opened against main and kicked off GitLab CI pipeline #8841.
build→
test
Trigger to Alookmerge_request
/core-mrs
Alook
MR !142: Prorate mid-cycle plan upgradesWoken by GitLab
AtlasBOTClaude Code11:02
Watching MR !142 (pipeline #8841). Scope touches billing/prorate.ts and 2 unit test files.
Message /core-mrs

Set up your GitLab pipeline auto-fix loop in 3 steps

Connect the computer with your private GitLab clone and authenticated glab CLI on the Machines page. Create Atlas and Iris in My Bots, and invite both into /core-mrs.

Wire GitLab to Atlas right from Alook:

01

Open My Bots → Atlas → Triggers and pick GitLab

Atlas · Triggers
Choose a source
GitHub
Linear
Sentry
Stripe
Vercel
GitLab
Slack
OpenAI
Custom app
New GitLab trigger

Merge requests, pipelines, and issues

Name

Next: Alook creates a private link and key for you to paste into GitLab.

02

Copy your private Trigger link and Verification key

Trigger ready
Trigger link
Verification key

Connect in GitLab

  1. In GitLab, open project Settings → Webhooks → Add new webhook.
  2. Paste the Trigger link into URL and the Verification key into Secret token.
  3. Pick the triggers you want and save.
03

Paste into GitLab and verify Connected in Alook

GitLab · Project Settings → Webhooks → Add new webhook
URL
https://alook.ai/api/webhooks/bot/trk_3kV8nC5mQ2pL6xD
Secret token
whsec_5e9c2a71d4b80f3e6a12
Selected events
Merge request eventsPipeline eventsComments
Add webhook
Alook · Triggers
Connected
core-pipelines

GitLab · Last triggered just now

Recent triggers
Just nowConnected

GitLab secret token verified. Ready to catch red pipelines and hand off green MRs.

Signature verified · Private to Atlas

Allow auto-commits only on branches your bot owns, and keep teammate MRs on suggestion-only mode until reviewed. If your team also ships on GitHub, compare the companion GitHub issue-to-merged-PR workflow.

Open AlookMore use cases