Skip to content

Commit 42ca070

Browse files
committed
fix regression, wrong parameter order
1 parent e7a8806 commit 42ca070

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

services/actions/notifier_helper.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,11 @@ func skipWorkflows(ctx context.Context, input *notifyInput, commit *git.Commit)
269269
if wrun.WorkflowRun.Event != "workflow_run" {
270270
return false
271271
}
272-
r, _ := actions_model.GetRunByRepoAndID(ctx, wrun.WorkflowRun.ID, input.Repo.ID)
273-
var err error
272+
r, err := actions_model.GetRunByRepoAndID(ctx, input.Repo.ID, wrun.WorkflowRun.ID)
273+
if err != nil {
274+
log.Error("GetRunByRepoAndID: %v", err)
275+
return true
276+
}
274277
wrun, err = r.GetWorkflowRunEventPayload()
275278
if err != nil {
276279
log.Error("GetWorkflowRunEventPayload: %v", err)

0 commit comments

Comments
 (0)