always set .Plan in hookvars to properly format messages for prune/check operations
Build Snapshot Release / build (push) Waiting to run
Release Please / release-please (push) Waiting to run
Test / test-nix (push) Waiting to run
Test / test-win (push) Waiting to run

This commit is contained in:
garethgeorge
2024-11-16 13:30:50 -08:00
parent e60a4fbcd7
commit 0ecebf8ce4
+4
View File
@@ -96,6 +96,10 @@ func (t *taskRunnerImpl) ExecuteHooks(ctx context.Context, events []v1.Hook_Cond
if planID != "" {
plan, _ = t.findPlan()
vars.Plan = plan
} else {
vars.Plan = &v1.Plan{
Id: tasks.PlanForUnassociatedOperations,
}
}
hookTasks, err := hook.TasksTriggeredByEvent(t.Config(), repoID, planID, t.op, events, vars)