Skip to content

Commit 7914983

Browse files
committed
regenerate golden-files
1 parent 9ce82de commit 7914983

27 files changed

+30
-33
lines changed

coderd/database/migrations/000302_remove_greetings_notifications_templates.down.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Template **{{.Labels.template_display_name}}** has failed to build {{.Data.faile
1414
1515
**Report:**
1616
{{range $version := .Data.template_versions}}
17-
**{{$version.template_version_name}}** failed {{$version.failed_count}} time{{if gt $version.failed_count 1}}s{{end}}:
17+
**{{$version.template_version_name}}** failed {{$version.failed_count}} time{{if gt $version.failed_count 1.0}}s{{end}}:
1818
{{range $build := $version.failed_builds}}
1919
* [{{$build.workspace_owner_username}} / {{$build.workspace_name}} / #{{$build.build_number}}]({{base_url}}/@{{$build.workspace_owner_username}}/{{$build.workspace_name}}/builds/{{$build.build_number}})
2020
{{- end}}

coderd/database/migrations/000302_remove_greetings_notifications_templates.up.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ UPDATE notification_templates SET body_template = E'Template **{{.Labels.templat
1212
1313
**Report:**
1414
{{range $version := .Data.template_versions}}
15-
**{{$version.template_version_name}}** failed {{$version.failed_count}} time{{if gt $version.failed_count 1}}s{{end}}:
15+
**{{$version.template_version_name}}** failed {{$version.failed_count}} time{{if gt $version.failed_count 1.0}}s{{end}}:
1616
{{range $build := $version.failed_builds}}
1717
* [{{$build.workspace_owner_username}} / {{$build.workspace_name}} / #{{$build.build_number}}]({{base_url}}/@{{$build.workspace_owner_username}}/{{$build.workspace_name}}/builds/{{$build.build_number}})
1818
{{- end}}

coderd/notifications/dispatch/smtp/html.gotmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
{{ .Labels._subject }}
1515
</h1>
1616
<div style="line-height: 1.5;">
17-
Hi,
17+
Hi {{ .UserUsername }},
1818
{{ .Labels._body }}
1919
</div>
2020
<div style="text-align: center; margin-top: 32px;">

coderd/notifications/testdata/rendered-templates/smtp/TemplateTemplateDeleted.html.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ argin: 8px 0 32px; line-height: 1.5;">
4545
Template "Bobby's Template" deleted
4646
</h1>
4747
<div style=3D"line-height: 1.5;">
48-
Hi,
48+
Hi bobby,
4949
<p>Hi Bobby,</p>
5050

5151
<p>The template <strong>Bobby&rsquo;s Template</strong> was deleted by <str=

coderd/notifications/testdata/rendered-templates/smtp/TemplateTemplateDeprecated.html.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ argin: 8px 0 32px; line-height: 1.5;">
5151
Template 'alpha' has been deprecated
5252
</h1>
5353
<div style=3D"line-height: 1.5;">
54-
Hi,
54+
Hi bobby,
5555
<p>The template <strong>alpha</strong> has been deprecated with the=
5656
following message:</p>
5757

coderd/notifications/testdata/rendered-templates/smtp/TemplateTestNotification.html.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ argin: 8px 0 32px; line-height: 1.5;">
4444
A test notification
4545
</h1>
4646
<div style=3D"line-height: 1.5;">
47-
Hi,
47+
Hi bobby,
4848
<p>This is a test notification.</p>
4949
</div>
5050
<div style=3D"text-align: center; margin-top: 32px;">

coderd/notifications/testdata/rendered-templates/smtp/TemplateUserAccountActivated.html.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ argin: 8px 0 32px; line-height: 1.5;">
4343
User account "bobby" activated
4444
</h1>
4545
<div style=3D"line-height: 1.5;">
46-
Hi,
46+
Hi bobby,
4747
<p>User account <strong>bobby</strong> has been activated.</p>
4848
</div>
4949
<div style=3D"text-align: center; margin-top: 32px;">

coderd/notifications/testdata/rendered-templates/smtp/TemplateUserAccountCreated.html.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ argin: 8px 0 32px; line-height: 1.5;">
4343
User account "bobby" created
4444
</h1>
4545
<div style=3D"line-height: 1.5;">
46-
Hi,
46+
Hi bobby,
4747
<p>New user account <strong>bobby</strong> has been created.</p>
4848
</div>
4949
<div style=3D"text-align: center; margin-top: 32px;">

coderd/notifications/testdata/rendered-templates/smtp/TemplateUserAccountDeleted.html.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ argin: 8px 0 32px; line-height: 1.5;">
4343
User account "bobby" deleted
4444
</h1>
4545
<div style=3D"line-height: 1.5;">
46-
Hi,
46+
Hi bobby,
4747
<p>User account <strong>bobby</strong> has been deleted.</p>
4848
</div>
4949
<div style=3D"text-align: center; margin-top: 32px;">

coderd/notifications/testdata/rendered-templates/smtp/TemplateUserAccountSuspended.html.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ argin: 8px 0 32px; line-height: 1.5;">
4444
User account "bobby" suspended
4545
</h1>
4646
<div style=3D"line-height: 1.5;">
47-
Hi,
47+
Hi bobby,
4848
<p>User account <strong>bobby</strong> has been suspended.</p>
4949
</div>
5050
<div style=3D"text-align: center; margin-top: 32px;">

coderd/notifications/testdata/rendered-templates/smtp/TemplateUserRequestedOneTimePasscode.html.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ argin: 8px 0 32px; line-height: 1.5;">
4949
Reset your password for Coder
5050
</h1>
5151
<div style=3D"line-height: 1.5;">
52-
Hi,
52+
Hi bobby,
5353
<p>A request to reset the password for your Coder account has been =
5454
made. Your one-time passcode is:</p>
5555

coderd/notifications/testdata/rendered-templates/smtp/TemplateWorkspaceAutoUpdated.html.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ argin: 8px 0 32px; line-height: 1.5;">
4444
Workspace "bobby-workspace" updated automatically
4545
</h1>
4646
<div style=3D"line-height: 1.5;">
47-
Hi,
47+
Hi bobby,
4848
<p>Your workspace <strong>bobby-workspace</strong> has been updated=
4949
automatically to the latest template version (1.0).</p>
5050
</div>

coderd/notifications/testdata/rendered-templates/smtp/TemplateWorkspaceAutobuildFailed.html.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ argin: 8px 0 32px; line-height: 1.5;">
4444
Workspace "bobby-workspace" autobuild failed
4545
</h1>
4646
<div style=3D"line-height: 1.5;">
47-
Hi,
47+
Hi bobby,
4848
<p>Automatic build of your workspace <strong>bobby-workspace</stron=
4949
g> failed.<br>
5050
The specified reason was &ldquo;<strong>autostart</strong>&rdquo;.</p>

coderd/notifications/testdata/rendered-templates/smtp/TemplateWorkspaceBuildsFailedReport.html.golden

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ MIME-Version: 1.0
1010
Content-Transfer-Encoding: quoted-printable
1111
Content-Type: text/plain; charset=UTF-8
1212

13-
Hi Bobby,
14-
1513
Template Bobby First Template has failed to build 4/55 times over the last =
1614
week.
1715

@@ -65,10 +63,9 @@ argin: 8px 0 32px; line-height: 1.5;">
6563
Workspace builds failed for template "Bobby First Template"
6664
</h1>
6765
<div style=3D"line-height: 1.5;">
68-
<p>Hi Bobby,</p>
69-
70-
<p>Template <strong>Bobby First Template</strong> has failed to build <sup>=
71-
4</sup>&frasl;<sub>55</sub> times over the last week.</p>
66+
Hi bobby,
67+
<p>Template <strong>Bobby First Template</strong> has failed to bui=
68+
ld <sup>4</sup>&frasl;<sub>55</sub> times over the last week.</p>
7269

7370
<p><strong>Report:</strong></p>
7471

coderd/notifications/testdata/rendered-templates/smtp/TemplateWorkspaceCreated.html.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ argin: 8px 0 32px; line-height: 1.5;">
4444
Workspace 'bobby-workspace' has been created
4545
</h1>
4646
<div style=3D"line-height: 1.5;">
47-
Hi,
47+
Hi bobby,
4848
<p>The workspace <strong>bobby-workspace</strong> has been created =
4949
from the template <strong>bobby-template</strong> using version <strong>alp=
5050
ha</strong>.</p>

coderd/notifications/testdata/rendered-templates/smtp/TemplateWorkspaceDeleted.html.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ argin: 8px 0 32px; line-height: 1.5;">
4646
Workspace "bobby-workspace" deleted
4747
</h1>
4848
<div style=3D"line-height: 1.5;">
49-
Hi,
49+
Hi bobby,
5050
<p>Your workspace <strong>bobby-workspace</strong> was deleted.<br>
5151
The specified reason was &ldquo;<strong>autodeleted due to dormancy (autobu=
5252
ild)</strong>&rdquo;.</p>

coderd/notifications/testdata/rendered-templates/smtp/TemplateWorkspaceDeleted_CustomAppearance.html.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ argin: 8px 0 32px; line-height: 1.5;">
4646
Workspace "bobby-workspace" deleted
4747
</h1>
4848
<div style=3D"line-height: 1.5;">
49-
Hi,
49+
Hi bobby,
5050
<p>Your workspace <strong>bobby-workspace</strong> was deleted.<br>
5151
The specified reason was &ldquo;<strong>autodeleted due to dormancy (autobu=
5252
ild)</strong>&rdquo;.</p>

coderd/notifications/testdata/rendered-templates/smtp/TemplateWorkspaceDormant.html.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ argin: 8px 0 32px; line-height: 1.5;">
5151
Workspace "bobby-workspace" marked as dormant
5252
</h1>
5353
<div style=3D"line-height: 1.5;">
54-
Hi,
54+
Hi bobby,
5555
<p>Hi Bobby,</p>
5656

5757
<p>Your workspace <strong>bobby-workspace</strong> has been marked as <a hr=

coderd/notifications/testdata/rendered-templates/smtp/TemplateWorkspaceManualBuildFailed.html.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ argin: 8px 0 32px; line-height: 1.5;">
4545
Workspace "bobby-workspace" manual build failed
4646
</h1>
4747
<div style=3D"line-height: 1.5;">
48-
Hi,
48+
Hi bobby,
4949
<p>A manual build of the workspace <strong>bobby-workspace</strong>=
5050
using the template <strong>bobby-template</strong> failed (version: <stron=
5151
g>bobby-template-version</strong>).<br>

coderd/notifications/testdata/rendered-templates/smtp/TemplateWorkspaceManuallyUpdated.html.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ argin: 8px 0 32px; line-height: 1.5;">
4747
Workspace 'bobby-workspace' has been manually updated
4848
</h1>
4949
<div style=3D"line-height: 1.5;">
50-
Hi,
50+
Hi bobby,
5151
<p>A new workspace build has been manually created for your workspa=
5252
ce <strong>bobby-workspace</strong> by <strong>bobby</strong> to update it =
5353
to version <strong>alpha</strong> of template <strong>bobby-template</stron=

coderd/notifications/testdata/rendered-templates/smtp/TemplateWorkspaceMarkedForDeletion.html.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ argin: 8px 0 32px; line-height: 1.5;">
4848
Workspace "bobby-workspace" marked for deletion
4949
</h1>
5050
<div style=3D"line-height: 1.5;">
51-
Hi,
51+
Hi bobby,
5252
<p>Hi Bobby,</p>
5353

5454
<p>Your workspace <strong>bobby-workspace</strong> has been marked for <str=

coderd/notifications/testdata/rendered-templates/smtp/TemplateWorkspaceOutOfDisk.html.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ argin: 8px 0 32px; line-height: 1.5;">
4343
Your workspace "bobby-workspace" is low on volume space
4444
</h1>
4545
<div style=3D"line-height: 1.5;">
46-
Hi,
46+
Hi bobby,
4747
<p>Volume <strong><code>/home/coder</code></strong> is over 90% ful=
4848
l in workspace <strong>bobby-workspace</strong>.</p>
4949
</div>

coderd/notifications/testdata/rendered-templates/smtp/TemplateWorkspaceOutOfDisk_MultipleVolumes.html.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ argin: 8px 0 32px; line-height: 1.5;">
4747
Your workspace "bobby-workspace" is low on volume space
4848
</h1>
4949
<div style=3D"line-height: 1.5;">
50-
Hi,
50+
Hi bobby,
5151
<p>The following volumes are nearly full in workspace <strong>bobby=
5252
-workspace</strong></p>
5353

coderd/notifications/testdata/rendered-templates/smtp/TemplateWorkspaceOutOfMemory.html.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ argin: 8px 0 32px; line-height: 1.5;">
4444
Your workspace "bobby-workspace" is low on memory
4545
</h1>
4646
<div style=3D"line-height: 1.5;">
47-
Hi,
47+
Hi bobby,
4848
<p>Your workspace <strong>bobby-workspace</strong> has reached the =
4949
memory usage threshold set at <strong>90%</strong>.</p>
5050
</div>

coderd/notifications/testdata/rendered-templates/smtp/TemplateYourAccountActivated.html.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ argin: 8px 0 32px; line-height: 1.5;">
4343
Your account "bobby" has been activated
4444
</h1>
4545
<div style=3D"line-height: 1.5;">
46-
Hi,
46+
Hi bobby,
4747
<p>Your account <strong>bobby</strong> has been activated.</p>
4848
</div>
4949
<div style=3D"text-align: center; margin-top: 32px;">

coderd/notifications/testdata/rendered-templates/smtp/TemplateYourAccountSuspended.html.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ argin: 8px 0 32px; line-height: 1.5;">
4141
Your account "bobby" has been suspended
4242
</h1>
4343
<div style=3D"line-height: 1.5;">
44-
Hi,
44+
Hi bobby,
4545
<p>Your account <strong>bobby</strong> has been suspended.</p>
4646
</div>
4747
<div style=3D"text-align: center; margin-top: 32px;">

coderd/notifications/testdata/rendered-templates/webhook/TemplateWorkspaceBuildsFailedReport.json.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,6 @@
6262
},
6363
"title": "Workspace builds failed for template \"Bobby First Template\"",
6464
"title_markdown": "Workspace builds failed for template \"Bobby First Template\"",
65-
"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.",
66-
"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."
65+
"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.",
66+
"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."
6767
}

0 commit comments

Comments
 (0)