feat: notify on task auto pause, manual pause and manual resume (#22050)

This commit is contained in:
Danielle Maywood
2026-02-18 16:30:16 +00:00
committed by GitHub
parent dcdca814d6
commit 31c1279202
12 changed files with 569 additions and 37 deletions
@@ -0,0 +1,35 @@
{
"_version": "1.1",
"msg_id": "00000000-0000-0000-0000-000000000000",
"payload": {
"_version": "1.2",
"notification_name": "Task Paused",
"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/00000000-0000-0000-0000-000000000000"
},
{
"label": "View workspace",
"url": "http://test.com/@bobby/my-workspace"
}
],
"labels": {
"pause_reason": "idle timeout",
"task": "my-task",
"task_id": "00000000-0000-0000-0000-000000000000",
"workspace": "my-workspace"
},
"data": {},
"targets": null
},
"title": "Task 'my-task' is paused",
"title_markdown": "Task 'my-task' is paused",
"body": "The task 'my-task' was paused (idle timeout).",
"body_markdown": "The task 'my-task' was paused (idle timeout)."
}
@@ -0,0 +1,34 @@
{
"_version": "1.1",
"msg_id": "00000000-0000-0000-0000-000000000000",
"payload": {
"_version": "1.2",
"notification_name": "Task Resumed",
"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/00000000-0000-0000-0000-000000000000"
},
{
"label": "View workspace",
"url": "http://test.com/@bobby/my-workspace"
}
],
"labels": {
"task": "my-task",
"task_id": "00000000-0000-0000-0000-000000000000",
"workspace": "my-workspace"
},
"data": {},
"targets": null
},
"title": "Task 'my-task' has resumed",
"title_markdown": "Task 'my-task' has resumed",
"body": "The task 'my-task' has resumed.",
"body_markdown": "The task 'my-task' has resumed."
}