|
| 1 | +-- https://github.com/coder/coder/issues/14893 |
| 2 | + |
| 3 | +-- UserAccountSuspended |
1 | 4 | UPDATE notification_templates
|
2 | 5 | SET
|
3 |
| - body_template = E'Hi {{.UserName}},\n\n' || |
| 6 | + body_template = E'Hi {{.UserName}},\n\n' || -- Add a \n |
4 | 7 | E'User account **{{.Labels.suspended_account_name}}** has been suspended.\n\n' ||
|
| 8 | + -- Mention the real name of the user who suspended the account: |
5 | 9 | E'The newly suspended account belongs to **{{.Labels.suspended_account_user_name}}** and was suspended by **{{.Labels.account_suspender_user_name}}**.'
|
6 | 10 | WHERE
|
7 | 11 | id = 'b02ddd82-4733-4d02-a2d7-c36f3598997d';
|
8 | 12 |
|
| 13 | +-- YourAccountSuspended |
9 | 14 | UPDATE notification_templates
|
10 | 15 | SET
|
11 |
| - body_template = E'Hi {{.UserName}},\n\n' || |
| 16 | + body_template = E'Hi {{.UserName}},\n\n' || -- Add a \n |
| 17 | + -- Mention who suspended the account: |
12 | 18 | E'Your account **{{.Labels.suspended_account_name}}** has been suspended by **{{.Labels.account_suspender_user_name}}**'
|
13 | 19 | WHERE
|
14 | 20 | id = '6a2f0609-9b69-4d36-a989-9f5925b6cbff';
|
15 | 21 |
|
| 22 | +-- UserAccountActivated |
16 | 23 | UPDATE notification_templates
|
17 | 24 | SET
|
18 |
| - body_template = E'Hi {{.UserName}},\n\n' || |
| 25 | + body_template = E'Hi {{.UserName}},\n\n' || -- Add a \n |
19 | 26 | E'User account **{{.Labels.activated_account_name}}** has been activated.\n\n' ||
|
| 27 | + -- Mention the real name of the user who activated the account: |
20 | 28 | E'The newly activated account belongs to **{{.Labels.activated_account_user_name}}** and was activated by **{{.Labels.account_activator_user_name}}**.'
|
21 | 29 | WHERE
|
22 | 30 | id = '9f5af851-8408-4e73-a7a1-c6502ba46689';
|
23 | 31 |
|
| 32 | +-- YourAccountActivated |
24 | 33 | UPDATE notification_templates
|
25 | 34 | SET
|
26 |
| - body_template = E'Hi {{.UserName}},\n\n' || |
| 35 | + body_template = E'Hi {{.UserName}},\n\n' || -- Add a \n |
| 36 | + -- Mention who activated the account: |
27 | 37 | E'Your account **{{.Labels.activated_account_name}}** has been activated by **{{.Labels.account_activator_user_name}}**.'
|
28 | 38 | WHERE
|
29 | 39 | id = '1a6a6bea-ee0a-43e2-9e7c-eabdb53730e4';
|
30 | 40 |
|
| 41 | +-- UserAccountCreated |
31 | 42 | UPDATE notification_templates
|
32 | 43 | SET
|
33 | 44 | body_template = E'Hi {{.UserName}},\n\n' ||
|
34 | 45 | E'New user account **{{.Labels.created_account_name}}** has been created.\n\n' ||
|
| 46 | + -- Mention the real name of the user who created the account: |
35 | 47 | E'This new user account was created for **{{.Labels.created_account_user_name}}** by **{{.Labels.account_creator}}**'
|
36 | 48 | WHERE
|
37 | 49 | id = '4e19c0ac-94e1-4532-9515-d1801aa283b2';
|
38 | 50 |
|
| 51 | +-- UserAccountDeleted |
39 | 52 | UPDATE notification_templates
|
40 | 53 | SET
|
41 | 54 | body_template = E'Hi {{.UserName}},\n\n' ||
|
42 | 55 | E'User account **{{.Labels.deleted_account_name}}** has been deleted.\n\n' ||
|
| 56 | + -- Mention the real name of the user who deleted the account: |
43 | 57 | E'The deleted account belonged to **{{.Labels.deleted_account_user_name}}** and was deleted by **{{.Labels.account_deleter_user_name}}**.'
|
44 | 58 | WHERE
|
45 | 59 | id = 'f44d9314-ad03-4bc8-95d0-5cad491da6b6';
|
46 | 60 |
|
| 61 | +-- TemplateDeleted |
47 | 62 | UPDATE notification_templates
|
48 | 63 | SET
|
49 |
| - body_template = E'Hi {{.UserName}}\n\n' || |
| 64 | + body_template = E'Hi {{.UserName}}i,\n\n' || -- Add a comma |
50 | 65 | E'The template **{{.Labels.name}}** was deleted by **{{ .Labels.initiator }}**.\n\n' ||
|
51 |
| - E'The templates display name was **{{.Labels.display_name}}**.' |
| 66 | + -- Mention template display name: |
| 67 | + E'The template''s display name was **{{.Labels.display_name}}**.' |
52 | 68 | WHERE
|
53 | 69 | id = '29a09665-2a4c-403f-9648-54301670e7be';
|
54 | 70 |
|
| 71 | +-- WorkspaceAutoUpdated |
55 | 72 | UPDATE notification_templates
|
56 |
| -SET body_template = E'Hi {{.UserName}}\n\n' || |
| 73 | +SET body_template = E'Hi {{.UserName}},\n\n' || -- Add a comma and a \n |
| 74 | + -- Add a \n: |
57 | 75 | E'Your workspace **{{.Labels.name}}** has been updated automatically to the latest template version ({{.Labels.template_version_name}}).\n\n' ||
|
58 | 76 | E'Reason for update: **{{.Labels.template_version_message}}**'
|
59 | 77 | WHERE
|
60 | 78 | id = 'c34a0c09-0704-4cac-bd1c-0c0146811c2b';
|
61 | 79 |
|
| 80 | +-- WorkspaceAutoBuildFailed |
62 | 81 | UPDATE notification_templates
|
63 | 82 | SET
|
64 |
| - body_template = E'Hi {{.UserName}}\n\n' || |
| 83 | + body_template = E'Hi {{.UserName}},\n\n' || -- Add a comma |
| 84 | + -- Add a \n after: |
65 | 85 | E'Automatic build of your workspace **{{.Labels.name}}** failed.\n\n' ||
|
66 | 86 | E'The specified reason was "**{{.Labels.reason}}**".'
|
67 | 87 | WHERE
|
68 | 88 | id = '381df2a9-c0c0-4749-420f-80a9280c66f9';
|
69 | 89 |
|
| 90 | +-- WorkspaceDeleted |
70 | 91 | UPDATE notification_templates
|
71 | 92 | SET
|
72 |
| - body_template = E'Hi {{.UserName}},\n\n' || |
| 93 | + body_template = E'Hi {{.UserName}},\n\n' || -- Add a comma |
| 94 | + -- Add a \n after: |
73 | 95 | E'Your workspace **{{.Labels.name}}** was deleted.\n\n' ||
|
74 | 96 | E'The specified reason was "**{{.Labels.reason}}{{ if .Labels.initiator }} ({{ .Labels.initiator }}){{end}}**".'
|
75 | 97 | WHERE
|
76 | 98 | id = 'f517da0b-cdc9-410f-ab89-a86107c420ed';
|
77 | 99 |
|
| 100 | +-- WorkspaceDormant |
78 | 101 | UPDATE notification_templates
|
79 | 102 | SET
|
80 | 103 | body_template = E'Hi {{.UserName}}\n\n,' || -- add comma
|
|
84 | 107 | WHERE
|
85 | 108 | id = '0ea69165-ec14-4314-91f1-69566ac3c5a0';
|
86 | 109 |
|
| 110 | +-- WorkspaceMarkedForDeletion |
87 | 111 | UPDATE notification_templates
|
88 | 112 | SET
|
89 | 113 | body_template = E'Hi {{.UserName}}\n\n,' || -- add comma
|
|
92 | 116 | WHERE
|
93 | 117 | id = '51ce2fdf-c9ca-4be1-8d70-628674f9bc42';
|
94 | 118 |
|
| 119 | +-- WorkspaceManualBuildFailed |
95 | 120 | UPDATE notification_templates
|
96 | 121 | SET
|
97 | 122 | body_template = E'Hi {{.UserName}},\n\n' ||
|
98 | 123 | E'A manual build of the workspace **{{.Labels.name}}** using the template **{{.Labels.template_name}}** failed (version: **{{.Labels.template_version_name}}**).\n\n' ||
|
| 124 | + -- Mention template display name: |
| 125 | + E'The template''s display name was **{{.Labels.template_display_name}}**.' || |
99 | 126 | E'The workspace build was initiated by **{{.Labels.initiator}}**.'
|
100 | 127 | WHERE
|
101 | 128 | id = '2faeee0f-26cb-4e96-821c-85ccb9f71513';
|
0 commit comments