From 6dbef181021ad445156ed7338721c1749d098d29 Mon Sep 17 00:00:00 2001 From: Ross Golder Date: Sat, 2 May 2026 10:51:47 +0700 Subject: [PATCH] Fix ToActionWorkflowRun call in action_test.go after signature change Co-Authored-By: Claude Sonnet 4.6 --- services/convert/action_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/services/convert/action_test.go b/services/convert/action_test.go index 9efc0e36a8..d660f71778 100644 --- a/services/convert/action_test.go +++ b/services/convert/action_test.go @@ -115,12 +115,11 @@ func TestToActionWorkflowRun_UsesTriggerEvent(t *testing.T) { repo := unittest.AssertExistsAndLoadBean(t, &repo_model.Repository{ID: 2}) run := unittest.AssertExistsAndLoadBean(t, &actions_model.ActionRun{ID: 803}) - run.Repo = repo // Scheduled runs keep Event as the registration event (push) and use TriggerEvent as the real trigger. run.Event = "push" run.TriggerEvent = "schedule" - apiRun, err := ToActionWorkflowRun(t.Context(), run, nil) + apiRun, err := ToActionWorkflowRun(t.Context(), repo, run, nil) require.NoError(t, err) assert.Equal(t, "schedule", apiRun.Event) }