AS AgentScopeAPI 手册 / API Reference

GitLabWebhookController

@RestController @RequestMapping("/api/channels/gitlab") public class GitLabWebhookController
源码Source io/agentscope/extensions/channel/gitlab/GitLabWebhookController.java:43–158

GitLab Webhook 控制器,把智能体接入外部消息渠道与企业平台。位于 io.agentscope.extensions.channel.gitlab 包。核心成员包括 webhook、GitLabWebhookController。

Handles GitLab webhook deliveries. Single endpoint at POST /api/channels/gitlab/{channelId}/webhook.

Pipeline: X-Gitlab-Token verify -> X-Gitlab-Event type dispatch -> idempotency dedup -> bot-loop guard -> dispatch on the channel.

构造器摘要Constructor Summary

构造器Constructor说明Description
public GitLabWebhookController()
初始化 `GitLabWebhookController` 实例。
Creates a new instance.

方法摘要Method Summary

方法Method说明Description
public Mono<ResponseEntity<String>> webhook(String channelId, String token, String eventType, String rawBody)
执行 `webhook` 方法。
Performs the webhook operation.

构造器详情Constructor Detail

GitLabWebhookController

public GitLabWebhookController()

初始化 GitLabWebhookController 实例。

Creates a new instance.

源码Source io/agentscope/extensions/channel/gitlab/GitLabWebhookController.java:52–54

方法详情Method Detail

webhook

public Mono<ResponseEntity<String>> webhook(String channelId, String token, String eventType, String rawBody)

执行 webhook 方法。

Performs the webhook operation.

参数Parameters
名称Name类型Type说明Description
channelIdString渠道标识(类型 `String`)。The channel id.
tokenString令牌(类型 `String`)。The token.
eventTypeString事件类型(类型 `String`)。The event type.
rawBodyString原始正文(类型 `String`)。The raw body.
返回Returns Mono<ResponseEntity<String>>
返回Mono>。Returns mono.
源码Source io/agentscope/extensions/channel/gitlab/GitLabWebhookController.java:61–146
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.