Skip to main content
agentscope-extensions-channel-gitlab connects your Agent to GitLab note (comment) hooks. When someone comments on an issue or merge request, the Agent replies as a new note.

When to use

  • You want an AI-powered bot that responds to GitLab issue or merge request comments.
  • You run GitLab SaaS or a self-managed GitLab instance.

Add the dependency

Prerequisites

  1. Create a Personal Access Token (or Project/Group Access Token) with api scope.
  2. Configure a webhook on your project or group:
    • URL: https://your-host/api/channels/gitlab/{channelId}/webhook
    • Secret token: (optional, for signature verification)
    • Trigger: Note events

Quickstart

Configuration properties

Bot-loop protection

At startup, the channel resolves the bot’s GitLab user id by calling GET /api/v4/user. Incoming notes authored by the bot are dropped to prevent infinite loops.

Message flow

Inbound: GitLabWebhookController → note.id dedup → bot self-note filter → GitLabInboundMapper → bot-loop guard → Gateway. Outbound: GitLabOutboundClient posts replies as notes via the GitLab Notes API.