Skip to content

Commit 37173b0

Browse files
fix: minor improvement to template
1 parent b18730f commit 37173b0

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

coderd/database/migrations/000328_prebuild_failure_limit_notification.up.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ VALUES ('414d9331-c1fc-4761-b40c-d1f4702279eb',
55
E'There is a problem creating prebuilt workspaces for the preset',
66
$$
77
The number of failed prebuilds has reached the hard limit for template **{{ .Labels.template }}** and preset **{{ .Labels.preset }}**.
8+
9+
To resume prebuilds, fix the underlying issue and upload a new template version.
810
$$,
911
'Template Events',
1012
'[

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ Hi Bobby,
1515
The number of failed prebuilds has reached the hard limit for template dock=
1616
er and preset particle-accelerator.
1717

18+
To resume prebuilds, fix the underlying issue and upload a new template ver=
19+
sion.
20+
1821

1922
View failed workspaces: http://test.com/workspaces?filter=3Downer:prebuilds=
2023
+status:failed+template:docker
@@ -55,6 +58,9 @@ argin: 8px 0 32px; line-height: 1.5;">
5558
<p>The number of failed prebuilds has reached the hard limit for te=
5659
mplate <strong>docker</strong> and preset <strong>particle-accelerator</str=
5760
ong>.</p>
61+
62+
<p>To resume prebuilds, fix the underlying issue and upload a new template =
63+
version.</p>
5864
</div>
5965
<div style=3D"text-align: center; margin-top: 32px;">
6066
=20

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@
3030
},
3131
"title": "There is a problem creating prebuilt workspaces for the preset",
3232
"title_markdown": "There is a problem creating prebuilt workspaces for the preset",
33-
"body": "The number of failed prebuilds has reached the hard limit for template docker and preset particle-accelerator.",
34-
"body_markdown": "\nThe number of failed prebuilds has reached the hard limit for template **docker** and preset **particle-accelerator**.\n"
33+
"body": "The number of failed prebuilds has reached the hard limit for template docker and preset particle-accelerator.\n\nTo resume prebuilds, fix the underlying issue and upload a new template version.",
34+
"body_markdown": "\nThe number of failed prebuilds has reached the hard limit for template **docker** and preset **particle-accelerator**.\n\nTo resume prebuilds, fix the underlying issue and upload a new template version.\n"
3535
}

0 commit comments

Comments
 (0)