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 /services/notify/notifier.go | |
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 'services/notify/notifier.go')
-rw-r--r-- | services/notify/notifier.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/services/notify/notifier.go b/services/notify/notifier.go index 29bbb5702b..40428454be 100644 --- a/services/notify/notifier.go +++ b/services/notify/notifier.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" @@ -77,4 +78,6 @@ type Notifier interface { ChangeDefaultBranch(ctx context.Context, repo *repo_model.Repository) CreateCommitStatus(ctx context.Context, repo *repo_model.Repository, commit *repository.PushCommit, sender *user_model.User, status *git_model.CommitStatus) + + WorkflowJobStatusUpdate(ctx context.Context, repo *repo_model.Repository, sender *user_model.User, job *actions_model.ActionRunJob, task *actions_model.ActionTask) } |