mirror of
https://github.com/coder/coder.git
synced 2026-06-05 22:18:20 +00:00
208ed1efd7
This PR aims to close https://github.com/coder/coder/issues/14913. It expands the golden files for the notifier to include the entire payload serialised as JSON.
29 lines
1.1 KiB
Plaintext
29 lines
1.1 KiB
Plaintext
{
|
|
"_version": "1.1",
|
|
"msg_id": "00000000-0000-0000-0000-000000000000",
|
|
"payload": {
|
|
"_version": "1.1",
|
|
"notification_name": "User account deleted",
|
|
"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 accounts",
|
|
"url": "http://test.com/deployment/users?filter=status%3Aactive"
|
|
}
|
|
],
|
|
"labels": {
|
|
"deleted_account_name": "bobby",
|
|
"deleted_account_user_name": "William Tables",
|
|
"initiator": "rob"
|
|
},
|
|
"data": null
|
|
},
|
|
"title": "User account \"bobby\" deleted",
|
|
"title_markdown": "User account \"bobby\" deleted",
|
|
"body": "Hi Bobby,\n\nUser account bobby has been deleted.\n\nThe deleted account belonged to William Tables and was deleted by rob.",
|
|
"body_markdown": "Hi Bobby,\n\nUser account **bobby** has been deleted.\n\nThe deleted account belonged to **William Tables** and was deleted by **rob**."
|
|
} |