diff options
author | ChristopherHX <christopher.homberger@web.de> | 2025-03-11 18:40:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-11 10:40:38 -0700 |
commit | 651ef669665066d4f90da3da8471120bda2a2a6b (patch) | |
tree | 54fc3927afd4d59fdae6396452e72abab33bd2df /routers/api/v1 | |
parent | f61f30153b51f2db50d96268e718a1319f5c03b2 (diff) | |
download | gitea-651ef669665066d4f90da3da8471120bda2a2a6b.tar.gz gitea-651ef669665066d4f90da3da8471120bda2a2a6b.zip |
Add workflow_job webhook (#33694)
Provide external Integration information about the Queue lossly based on
https://docs.github.com/en/webhooks/webhook-events-and-payloads?actionType=completed#workflow_job
Naming conflicts between GitHub & Gitea are here, Blocked => Waiting,
Waiting => Queued
Rationale Enhancement for ephemeral runners management #33570
Diffstat (limited to 'routers/api/v1')
-rw-r--r-- | routers/api/v1/utils/hook.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/api/v1/utils/hook.go b/routers/api/v1/utils/hook.go index 9c49819970..ce0c1b5097 100644 --- a/routers/api/v1/utils/hook.go +++ b/routers/api/v1/utils/hook.go @@ -207,6 +207,7 @@ func addHook(ctx *context.APIContext, form *api.CreateHookOption, ownerID, repoI webhook_module.HookEventRelease: util.SliceContainsString(form.Events, string(webhook_module.HookEventRelease), true), webhook_module.HookEventPackage: util.SliceContainsString(form.Events, string(webhook_module.HookEventPackage), true), webhook_module.HookEventStatus: util.SliceContainsString(form.Events, string(webhook_module.HookEventStatus), true), + webhook_module.HookEventWorkflowJob: util.SliceContainsString(form.Events, string(webhook_module.HookEventWorkflowJob), true), }, BranchFilter: form.BranchFilter, }, |