Class GitHubWebhookController

java.lang.Object
io.agentscope.extensions.channel.github.GitHubWebhookController

@RestController @RequestMapping("/api/channels/github") public class GitHubWebhookController extends Object
Handles GitHub webhook deliveries. Single endpoint at POST /api/channels/github/{channelId}/webhook. The body is JSON (received as a raw byte[] so the HMAC-SHA256 signature can be computed over the exact bytes GitHub signed).

Pipeline: signature verify -> event-type dispatch -> idempotency dedup -> bot-loop guard -> dispatch on the channel.

  • Constructor Details

    • GitHubWebhookController

      public GitHubWebhookController()
  • 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-GitHub-Event",required=false) String eventType, @RequestHeader(value="X-GitHub-Delivery",required=false) String deliveryId, @RequestHeader(value="X-Hub-Signature-256",required=false) String signature256, @RequestBody byte[] rawBody)