We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent769c9ee commit1267c9cCopy full SHA for 1267c9c
coderd/autobuild/lifecycle_executor.go
@@ -349,13 +349,18 @@ func (e *Executor) runOnce(t time.Time) Stats {
349
nextBuildReason=string(nextBuild.Reason)
350
}
351
352
+templateVersionMessage:=activeTemplateVersion.Message
353
+iftemplateVersionMessage=="" {
354
+templateVersionMessage="None provided"
355
+}
356
+
357
if_,err:=e.notificationsEnqueuer.Enqueue(e.ctx,ws.OwnerID,notifications.TemplateWorkspaceAutoUpdated,
358
map[string]string{
359
"name":ws.Name,
360
"initiator":"autobuild",
361
"reason":nextBuildReason,
362
"template_version_name":activeTemplateVersion.Name,
-"template_version_message":activeTemplateVersion.Message,
363
+"template_version_message":templateVersionMessage,
364
},"autobuild",
365
// Associate this notification with all the related entities.
366
ws.ID,ws.OwnerID,ws.TemplateID,ws.OrganizationID,