mirror of
https://github.com/coder/coder.git
synced 2026-06-04 21:48:22 +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.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": "User account 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 accounts",
|
|
"url": "http://test.com/deployment/users?filter=status%3Aactive"
|
|
}
|
|
],
|
|
"labels": {
|
|
"created_account_name": "bobby",
|
|
"created_account_user_name": "William Tables",
|
|
"initiator": "rob"
|
|
},
|
|
"data": null
|
|
},
|
|
"title": "User account \"bobby\" created",
|
|
"title_markdown": "User account \"bobby\" created",
|
|
"body": "Hi Bobby,\n\nNew user account bobby has been created.\n\nThis new user account was created for William Tables by rob.",
|
|
"body_markdown": "Hi Bobby,\n\nNew user account **bobby** has been created.\n\nThis new user account was created for **William Tables** by **rob**."
|
|
} |