Path: blob/main/components/gitpod-protocol/src/webhook-event.ts
2498 views
/**1* Copyright (c) 2022 Gitpod GmbH. All rights reserved.2* Licensed under the GNU Affero General Public License (AGPL).3* See License.AGPL.txt in the project root for license information.4*/56export interface WebhookEvent {7id: string;8creationTime: string;9type: "push" | string;1011/**12* Typically the webhook installer is referenced here.13*/14authorizedUserId?: string;1516/**17* webhook event's payload18*/19rawEvent: string;2021/**22* The general status of the received webhook event.23*/24status: WebhookEvent.Status;2526/**27* Optional message to help understand errors with handling events.28*/29message?: string;3031/**32* If the webhook event is considered to trigger a prebuild, the `prebuildStatus`33* contains a more specific status.34*/35prebuildStatus?: WebhookEvent.PrebuildStatus;3637/**38* If `prebuildStatus` is `prebuild_triggered` this points to a prebuild.39*/40prebuildId?: string;4142projectId?: string;4344cloneUrl?: string;4546branch?: string;4748commit?: string;49}5051export namespace WebhookEvent {52export type Status = "received" | "dismissed_unauthorized" | "ignored" | "processed";53export type PrebuildStatus = "ignored_unconfigured" | "prebuild_trigger_failed" | "prebuild_triggered";54}555657