From c21179a7decea1b06de199cf31e838b68111fe21 Mon Sep 17 00:00:00 2001 From: Davide Vacca Date: Fri, 23 Aug 2024 17:44:43 +0200 Subject: [PATCH] Fix workflow_run_status and resource type in webhook --- schemas/webhooks/webhook_event.yaml | 3 +++ schemas/workflow_runs/definitions.yaml | 19 +++++++++---------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/schemas/webhooks/webhook_event.yaml b/schemas/webhooks/webhook_event.yaml index 5e001d34..8fff5d12 100644 --- a/schemas/webhooks/webhook_event.yaml +++ b/schemas/webhooks/webhook_event.yaml @@ -10,6 +10,9 @@ properties: resource_type: type: string enum: + - check + - report + - audit_log - workflow_run - workflow_task description: Indicates the resource affected by this event. diff --git a/schemas/workflow_runs/definitions.yaml b/schemas/workflow_runs/definitions.yaml index 3c336249..49f8b729 100644 --- a/schemas/workflow_runs/definitions.yaml +++ b/schemas/workflow_runs/definitions.yaml @@ -116,16 +116,15 @@ workflow_run_link: description: The code for the language when the workflow run is acessed using the link. workflow_run_status: - properties: - type: string - enum: - - awaiting_input - - processing - - abandoned - - error - - approved - - review - - declined + type: string + enum: + - awaiting_input + - processing + - abandoned + - error + - approved + - review + - declined workflow_run_error: type: object