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
- Create a Personal Access Token (or Project/Group Access Token) with
apiscope. - 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
- URL:
Quickstart
Configuration properties
Bot-loop protection
At startup, the channel resolves the bot’s GitLab user id by callingGET /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.