mirror of
https://github.com/coder/coder.git
synced 2026-06-03 21:18:24 +00:00
0faee8e913
Adds notifications on task transitions to completed or failure state. Authored by Claude, I reviewed it and it appears to be legit.
33 lines
983 B
Plaintext
33 lines
983 B
Plaintext
{
|
|
"_version": "1.1",
|
|
"msg_id": "00000000-0000-0000-0000-000000000000",
|
|
"payload": {
|
|
"_version": "1.2",
|
|
"notification_name": "Task Failed",
|
|
"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 task",
|
|
"url": "http://test.com/tasks/bobby/my-workspace"
|
|
},
|
|
{
|
|
"label": "View workspace",
|
|
"url": "http://test.com/@bobby/my-workspace"
|
|
}
|
|
],
|
|
"labels": {
|
|
"task": "my-task",
|
|
"workspace": "my-workspace"
|
|
},
|
|
"data": {},
|
|
"targets": null
|
|
},
|
|
"title": "Task 'my-workspace' failed",
|
|
"title_markdown": "Task 'my-workspace' failed",
|
|
"body": "The task 'my-task' has failed. Check the logs for more details.",
|
|
"body_markdown": "The task 'my-task' has failed. Check the logs for more details."
|
|
} |