fix: notifications: use username in workspace URLs (#14011)

This commit is contained in:
Marcin Tojek
2024-07-25 12:02:24 +02:00
committed by GitHub
parent 88bc491778
commit d488853393
9 changed files with 29 additions and 13 deletions
+3 -2
View File
@@ -42,10 +42,11 @@ func TestGoTemplate(t *testing.T) {
name: "render workspace URL",
in: `[{
"label": "View workspace",
"url": "{{ base_url }}/@{{.UserName}}/{{.Labels.name}}"
"url": "{{ base_url }}/@{{.UserUsername}}/{{.Labels.name}}"
}]`,
payload: types.MessagePayload{
UserName: "johndoe",
UserName: "John Doe",
UserUsername: "johndoe",
Labels: map[string]string{
"name": "my-workspace",
},