executeGithubWebhook abstract method

  1. @POST.new('/webhooks/{webhook_id}/{token}/github')
Future<void> executeGithubWebhook({
  1. @Path.new('webhook_id') required SnowflakeType webhookId,
  2. @Path.new('token') required String token,
  3. @Body.new() required GitHubWebhook body,
})

Execute GitHub webhook.

Receives and processes GitHub webhook events, formatting them as messages in the configured channel. Reads event type from X-GitHub-Event header and delivery ID from X-GitHub-Delivery header.

webhookId - The ID of the webhook.

token - The token.

body - Name not received - field will be skipped.

Implementation

@POST('/webhooks/{webhook_id}/{token}/github')
Future<void> executeGithubWebhook({
  @Path('webhook_id') required SnowflakeType webhookId,
  @Path('token') required String token,
  @Body() required GitHubWebhook body,
});