From 14a3dedd0363f065970ffbdcae913936d0861c39 Mon Sep 17 00:00:00 2001 From: Kir_Antipov Date: Wed, 19 Apr 2023 17:48:19 +0000 Subject: [PATCH] Made an interface that represents GitHub Webhook payload --- src/platforms/github/github-webhook-payload.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/platforms/github/github-webhook-payload.ts diff --git a/src/platforms/github/github-webhook-payload.ts b/src/platforms/github/github-webhook-payload.ts new file mode 100644 index 0000000..4049873 --- /dev/null +++ b/src/platforms/github/github-webhook-payload.ts @@ -0,0 +1,11 @@ +import { GitHubRelease } from "./github-release"; + +/** + * Represents the payload of a GitHub webhook event. + */ +export interface GitHubWebhookPayload { + /** + * Information about the release associated with the webhook event, if applicable. + */ + release?: GitHubRelease; +}