mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-04 00:18:01 +01:00
Add ability to format format event as Markdown in generic webhooks, similar to Datadog integration. Closes https://github.com/Unleash/unleash/issues/7646 Co-authored-by: Nuno Góis <github@nunogois.com>
9 lines
669 B
Plaintext
9 lines
669 B
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`Webhook integration should allow for eventJson and eventMarkdown in bodyTemplate 1`] = `
|
|
"{
|
|
"json": "{\\"id\\":1,\\"createdAt\\":\\"2024-07-24T00:00:00.000Z\\",\\"createdByUserId\\":-1337,\\"type\\":\\"feature-created\\",\\"createdBy\\":\\"some@user.com\\",\\"featureName\\":\\"some-toggle\\",\\"project\\":\\"default\\",\\"data\\":{\\"name\\":\\"some-toggle\\",\\"enabled\\":false,\\"strategies\\":[{\\"name\\":\\"default\\"}]}}",
|
|
"markdown": "*some@user.com* created *[some-toggle](http://some-url.com/projects/default/features/some-toggle)* in project *[default](http://some-url.com/projects/default)*"
|
|
}"
|
|
`;
|