Class GitLabWebhookController

java.lang.Object
io.agentscope.extensions.channel.gitlab.GitLabWebhookController

@RestController @RequestMapping("/api/channels/gitlab") public class GitLabWebhookController extends Object
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 Details

    • GitLabWebhookController

      public GitLabWebhookController()
  • Method Details

    • webhook

      @PostMapping(value="/{channelId}/webhook", consumes="application/json", produces="application/json") public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<String>> webhook(@PathVariable String channelId, @RequestHeader(value="X-Gitlab-Token",required=false) String token, @RequestHeader(value="X-Gitlab-Event",required=false) String eventType, @RequestBody String rawBody)