From 42ca070484b396d0b03fbe729da0037edf10f146 Mon Sep 17 00:00:00 2001 From: Christopher Homberger Date: Thu, 15 May 2025 20:32:30 +0200 Subject: [PATCH] fix regression, wrong parameter order --- services/actions/notifier_helper.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/services/actions/notifier_helper.go b/services/actions/notifier_helper.go index 62a745ddf4..3f063d0a9c 100644 --- a/services/actions/notifier_helper.go +++ b/services/actions/notifier_helper.go @@ -269,8 +269,11 @@ func skipWorkflows(ctx context.Context, input *notifyInput, commit *git.Commit) if wrun.WorkflowRun.Event != "workflow_run" { return false } - r, _ := actions_model.GetRunByRepoAndID(ctx, wrun.WorkflowRun.ID, input.Repo.ID) - var err error + r, err := actions_model.GetRunByRepoAndID(ctx, input.Repo.ID, wrun.WorkflowRun.ID) + if err != nil { + log.Error("GetRunByRepoAndID: %v", err) + return true + } wrun, err = r.GetWorkflowRunEventPayload() if err != nil { log.Error("GetWorkflowRunEventPayload: %v", err)