Skip to content

Commit

Permalink
always set .Plan in hookvars to properly format messages for prune/ch…
Browse files Browse the repository at this point in the history
…eck operations
  • Loading branch information
garethgeorge committed Nov 16, 2024
1 parent e60a4fb commit 0ecebf8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/orchestrator/taskrunnerimpl.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0ecebf8

Please sign in to comment.