Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
regenerate golden-files
  • Loading branch information
defelmnq committed Mar 19, 2025
commit 79149831c48f7e3116a0ea84e115849497337f6c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Template **{{.Labels.template_display_name}}** has failed to build {{.Data.faile

**Report:**
{{range $version := .Data.template_versions}}
**{{$version.template_version_name}}** failed {{$version.failed_count}} time{{if gt $version.failed_count 1}}s{{end}}:
**{{$version.template_version_name}}** failed {{$version.failed_count}} time{{if gt $version.failed_count 1.0}}s{{end}}:
{{range $build := $version.failed_builds}}
* [{{$build.workspace_owner_username}} / {{$build.workspace_name}} / #{{$build.build_number}}]({{base_url}}/@{{$build.workspace_owner_username}}/{{$build.workspace_name}}/builds/{{$build.build_number}})
{{- end}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ UPDATE notification_templates SET body_template = E'Template **{{.Labels.templat

**Report:**
{{range $version := .Data.template_versions}}
**{{$version.template_version_name}}** failed {{$version.failed_count}} time{{if gt $version.failed_count 1}}s{{end}}:
**{{$version.template_version_name}}** failed {{$version.failed_count}} time{{if gt $version.failed_count 1.0}}s{{end}}:
{{range $build := $version.failed_builds}}
* [{{$build.workspace_owner_username}} / {{$build.workspace_name}} / #{{$build.build_number}}]({{base_url}}/@{{$build.workspace_owner_username}}/{{$build.workspace_name}}/builds/{{$build.build_number}})
{{- end}}
Expand Down
2 changes: 1 addition & 1 deletion coderd/notifications/dispatch/smtp/html.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
{{ .Labels._subject }}
</h1>
<div style="line-height: 1.5;">
Hi,
Hi {{ .UserUsername }},
{{ .Labels._body }}
</div>
<div style="text-align: center; margin-top: 32px;">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ argin: 8px 0 32px; line-height: 1.5;">
Template "Bobby's Template" deleted
</h1>
<div style=3D"line-height: 1.5;">
Hi,
Hi bobby,
<p>Hi Bobby,</p>

<p>The template <strong>Bobby&rsquo;s Template</strong> was deleted by <str=
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ argin: 8px 0 32px; line-height: 1.5;">
Template 'alpha' has been deprecated
</h1>
<div style=3D"line-height: 1.5;">
Hi,
Hi bobby,
<p>The template <strong>alpha</strong> has been deprecated with the=
following message:</p>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ argin: 8px 0 32px; line-height: 1.5;">
A test notification
</h1>
<div style=3D"line-height: 1.5;">
Hi,
Hi bobby,
<p>This is a test notification.</p>
</div>
<div style=3D"text-align: center; margin-top: 32px;">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ argin: 8px 0 32px; line-height: 1.5;">
User account "bobby" activated
</h1>
<div style=3D"line-height: 1.5;">
Hi,
Hi bobby,
<p>User account <strong>bobby</strong> has been activated.</p>
</div>
<div style=3D"text-align: center; margin-top: 32px;">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ argin: 8px 0 32px; line-height: 1.5;">
User account "bobby" created
</h1>
<div style=3D"line-height: 1.5;">
Hi,
Hi bobby,
<p>New user account <strong>bobby</strong> has been created.</p>
</div>
<div style=3D"text-align: center; margin-top: 32px;">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ argin: 8px 0 32px; line-height: 1.5;">
User account "bobby" deleted
</h1>
<div style=3D"line-height: 1.5;">
Hi,
Hi bobby,
<p>User account <strong>bobby</strong> has been deleted.</p>
</div>
<div style=3D"text-align: center; margin-top: 32px;">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ argin: 8px 0 32px; line-height: 1.5;">
User account "bobby" suspended
</h1>
<div style=3D"line-height: 1.5;">
Hi,
Hi bobby,
<p>User account <strong>bobby</strong> has been suspended.</p>
</div>
<div style=3D"text-align: center; margin-top: 32px;">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ argin: 8px 0 32px; line-height: 1.5;">
Reset your password for Coder
</h1>
<div style=3D"line-height: 1.5;">
Hi,
Hi bobby,
<p>A request to reset the password for your Coder account has been =
made. Your one-time passcode is:</p>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ argin: 8px 0 32px; line-height: 1.5;">
Workspace "bobby-workspace" updated automatically
</h1>
<div style=3D"line-height: 1.5;">
Hi,
Hi bobby,
<p>Your workspace <strong>bobby-workspace</strong> has been updated=
automatically to the latest template version (1.0).</p>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ argin: 8px 0 32px; line-height: 1.5;">
Workspace "bobby-workspace" autobuild failed
</h1>
<div style=3D"line-height: 1.5;">
Hi,
Hi bobby,
<p>Automatic build of your workspace <strong>bobby-workspace</stron=
g> failed.<br>
The specified reason was &ldquo;<strong>autostart</strong>&rdquo;.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=UTF-8

Hi Bobby,

Template Bobby First Template has failed to build 4/55 times over the last =
week.

Expand Down Expand Up @@ -65,10 +63,9 @@ argin: 8px 0 32px; line-height: 1.5;">
Workspace builds failed for template "Bobby First Template"
</h1>
<div style=3D"line-height: 1.5;">
<p>Hi Bobby,</p>

<p>Template <strong>Bobby First Template</strong> has failed to build <sup>=
4</sup>&frasl;<sub>55</sub> times over the last week.</p>
Hi bobby,
<p>Template <strong>Bobby First Template</strong> has failed to bui=
ld <sup>4</sup>&frasl;<sub>55</sub> times over the last week.</p>

<p><strong>Report:</strong></p>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ argin: 8px 0 32px; line-height: 1.5;">
Workspace 'bobby-workspace' has been created
</h1>
<div style=3D"line-height: 1.5;">
Hi,
Hi bobby,
<p>The workspace <strong>bobby-workspace</strong> has been created =
from the template <strong>bobby-template</strong> using version <strong>alp=
ha</strong>.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ argin: 8px 0 32px; line-height: 1.5;">
Workspace "bobby-workspace" deleted
</h1>
<div style=3D"line-height: 1.5;">
Hi,
Hi bobby,
<p>Your workspace <strong>bobby-workspace</strong> was deleted.<br>
The specified reason was &ldquo;<strong>autodeleted due to dormancy (autobu=
ild)</strong>&rdquo;.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ argin: 8px 0 32px; line-height: 1.5;">
Workspace "bobby-workspace" deleted
</h1>
<div style=3D"line-height: 1.5;">
Hi,
Hi bobby,
<p>Your workspace <strong>bobby-workspace</strong> was deleted.<br>
The specified reason was &ldquo;<strong>autodeleted due to dormancy (autobu=
ild)</strong>&rdquo;.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ argin: 8px 0 32px; line-height: 1.5;">
Workspace "bobby-workspace" marked as dormant
</h1>
<div style=3D"line-height: 1.5;">
Hi,
Hi bobby,
<p>Hi Bobby,</p>

<p>Your workspace <strong>bobby-workspace</strong> has been marked as <a hr=
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ argin: 8px 0 32px; line-height: 1.5;">
Workspace "bobby-workspace" manual build failed
</h1>
<div style=3D"line-height: 1.5;">
Hi,
Hi bobby,
<p>A manual build of the workspace <strong>bobby-workspace</strong>=
using the template <strong>bobby-template</strong> failed (version: <stron=
g>bobby-template-version</strong>).<br>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ argin: 8px 0 32px; line-height: 1.5;">
Workspace 'bobby-workspace' has been manually updated
</h1>
<div style=3D"line-height: 1.5;">
Hi,
Hi bobby,
<p>A new workspace build has been manually created for your workspa=
ce <strong>bobby-workspace</strong> by <strong>bobby</strong> to update it =
to version <strong>alpha</strong> of template <strong>bobby-template</stron=
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ argin: 8px 0 32px; line-height: 1.5;">
Workspace "bobby-workspace" marked for deletion
</h1>
<div style=3D"line-height: 1.5;">
Hi,
Hi bobby,
<p>Hi Bobby,</p>

<p>Your workspace <strong>bobby-workspace</strong> has been marked for <str=
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ argin: 8px 0 32px; line-height: 1.5;">
Your workspace "bobby-workspace" is low on volume space
</h1>
<div style=3D"line-height: 1.5;">
Hi,
Hi bobby,
<p>Volume <strong><code>/home/coder</code></strong> is over 90% ful=
l in workspace <strong>bobby-workspace</strong>.</p>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ argin: 8px 0 32px; line-height: 1.5;">
Your workspace "bobby-workspace" is low on volume space
</h1>
<div style=3D"line-height: 1.5;">
Hi,
Hi bobby,
<p>The following volumes are nearly full in workspace <strong>bobby=
-workspace</strong></p>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ argin: 8px 0 32px; line-height: 1.5;">
Your workspace "bobby-workspace" is low on memory
</h1>
<div style=3D"line-height: 1.5;">
Hi,
Hi bobby,
<p>Your workspace <strong>bobby-workspace</strong> has reached the =
memory usage threshold set at <strong>90%</strong>.</p>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ argin: 8px 0 32px; line-height: 1.5;">
Your account "bobby" has been activated
</h1>
<div style=3D"line-height: 1.5;">
Hi,
Hi bobby,
<p>Your account <strong>bobby</strong> has been activated.</p>
</div>
<div style=3D"text-align: center; margin-top: 32px;">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ argin: 8px 0 32px; line-height: 1.5;">
Your account "bobby" has been suspended
</h1>
<div style=3D"line-height: 1.5;">
Hi,
Hi bobby,
<p>Your account <strong>bobby</strong> has been suspended.</p>
</div>
<div style=3D"text-align: center; margin-top: 32px;">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,6 @@
},
"title": "Workspace builds failed for template \"Bobby First Template\"",
"title_markdown": "Workspace builds failed for template \"Bobby First Template\"",
"body": "Hi Bobby,\n\nTemplate Bobby First Template has failed to build 4/55 times over the last week.\n\nReport:\n\nbobby-template-version-1 failed 3 times:\n\nmtojek / workspace-1 / #1234 (http://test.com/@mtojek/workspace-1/builds/1234)\njohndoe / my-workspace-3 / #5678 (http://test.com/@johndoe/my-workspace-3/builds/5678)\njack / workwork / #774 (http://test.com/@jack/workwork/builds/774)\n\nbobby-template-version-2 failed 1 time:\n\nben / cool-workspace / #8888 (http://test.com/@ben/cool-workspace/builds/8888)\n\nWe recommend reviewing these issues to ensure future builds are successful.",
"body_markdown": "Hi Bobby,\n\nTemplate **Bobby First Template** has failed to build 4/55 times over the last week.\n\n**Report:**\n\n**bobby-template-version-1** failed 3 times:\n\n* [mtojek / workspace-1 / #1234](http://test.com/@mtojek/workspace-1/builds/1234)\n* [johndoe / my-workspace-3 / #5678](http://test.com/@johndoe/my-workspace-3/builds/5678)\n* [jack / workwork / #774](http://test.com/@jack/workwork/builds/774)\n\n**bobby-template-version-2** failed 1 time:\n\n* [ben / cool-workspace / #8888](http://test.com/@ben/cool-workspace/builds/8888)\n\nWe recommend reviewing these issues to ensure future builds are successful."
"body": "Template Bobby First Template has failed to build 4/55 times over the last week.\n\nReport:\n\nbobby-template-version-1 failed 3 times:\n\nmtojek / workspace-1 / #1234 (http://test.com/@mtojek/workspace-1/builds/1234)\njohndoe / my-workspace-3 / #5678 (http://test.com/@johndoe/my-workspace-3/builds/5678)\njack / workwork / #774 (http://test.com/@jack/workwork/builds/774)\n\nbobby-template-version-2 failed 1 time:\n\nben / cool-workspace / #8888 (http://test.com/@ben/cool-workspace/builds/8888)\n\nWe recommend reviewing these issues to ensure future builds are successful.",
"body_markdown": "Template **Bobby First Template** has failed to build 4/55 times over the last week.\n\n**Report:**\n\n**bobby-template-version-1** failed 3 times:\n\n* [mtojek / workspace-1 / #1234](http://test.com/@mtojek/workspace-1/builds/1234)\n* [johndoe / my-workspace-3 / #5678](http://test.com/@johndoe/my-workspace-3/builds/5678)\n* [jack / workwork / #774](http://test.com/@jack/workwork/builds/774)\n\n**bobby-template-version-2** failed 1 time:\n\n* [ben / cool-workspace / #8888](http://test.com/@ben/cool-workspace/builds/8888)\n\nWe recommend reviewing these issues to ensure future builds are successful."
}
Loading