aboutsummaryrefslogtreecommitdiffstats
path: root/services/notify/notify.go
diff options
context:
space:
mode:
authorChristopherHX <christopher.homberger@web.de>2025-03-11 18:40:38 +0100
committerGitHub <noreply@github.com>2025-03-11 10:40:38 -0700
commit651ef669665066d4f90da3da8471120bda2a2a6b (patch)
tree54fc3927afd4d59fdae6396452e72abab33bd2df /services/notify/notify.go
parentf61f30153b51f2db50d96268e718a1319f5c03b2 (diff)
downloadgitea-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 'services/notify/notify.go')
-rw-r--r--services/notify/notify.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/services/notify/notify.go b/services/notify/notify.go
index c97d0fcbaf..9f8be4b577 100644
--- a/services/notify/notify.go
+++ b/services/notify/notify.go
@@ -6,6 +6,7 @@ package notify
import (
"context"
+ actions_model "code.gitea.io/gitea/models/actions"
git_model "code.gitea.io/gitea/models/git"
issues_model "code.gitea.io/gitea/models/issues"
packages_model "code.gitea.io/gitea/models/packages"
@@ -374,3 +375,9 @@ func CreateCommitStatus(ctx context.Context, repo *repo_model.Repository, commit
notifier.CreateCommitStatus(ctx, repo, commit, sender, status)
}
}
+
+func WorkflowJobStatusUpdate(ctx context.Context, repo *repo_model.Repository, sender *user_model.User, job *actions_model.ActionRunJob, task *actions_model.ActionTask) {
+ for _, notifier := range notifiers {
+ notifier.WorkflowJobStatusUpdate(ctx, repo, sender, job, task)
+ }
+}