mirror of
https://github.com/coder/coder.git
synced 2026-06-04 21:48:22 +00:00
f3fe3bc785
Relates to https://github.com/coder/coder/issues/15845 When the `/workspace/<name>/builds` endpoint is hit, we check if the requested template version is different to the previously used template version. If these values differ, we can assume that the workspace has been manually updated and send the appropriate notification. Automatic updates happen in the lifecycle executor and bypasses this endpoint entirely.
29 lines
1.0 KiB
Plaintext
29 lines
1.0 KiB
Plaintext
{
|
|
"_version": "1.1",
|
|
"msg_id": "00000000-0000-0000-0000-000000000000",
|
|
"payload": {
|
|
"_version": "1.1",
|
|
"notification_name": "Workspace Created",
|
|
"notification_template_id": "00000000-0000-0000-0000-000000000000",
|
|
"user_id": "00000000-0000-0000-0000-000000000000",
|
|
"user_email": "bobby@coder.com",
|
|
"user_name": "Bobby",
|
|
"user_username": "bobby",
|
|
"actions": [
|
|
{
|
|
"label": "View workspace",
|
|
"url": "http://test.com/@bobby/bobby-workspace"
|
|
}
|
|
],
|
|
"labels": {
|
|
"template": "bobby-template",
|
|
"version": "alpha",
|
|
"workspace": "bobby-workspace"
|
|
},
|
|
"data": null
|
|
},
|
|
"title": "Workspace 'bobby-workspace' has been created",
|
|
"title_markdown": "Workspace 'bobby-workspace' has been created",
|
|
"body": "Hello Bobby,\n\nThe workspace bobby-workspace has been created from the template bobby-template using version alpha.",
|
|
"body_markdown": "Hello Bobby,\n\nThe workspace **bobby-workspace** has been created from the template **bobby-template** using version **alpha**."
|
|
} |