From 8ec6f82ae62e61af8ed6221fc20ca67a2a179f76 Mon Sep 17 00:00:00 2001 From: Thomas Maier Date: Sun, 5 Jan 2020 15:09:25 +0100 Subject: [PATCH] adds example notification body for the slack-handler --- dev/slack-compatible-notification-example.json | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 dev/slack-compatible-notification-example.json diff --git a/dev/slack-compatible-notification-example.json b/dev/slack-compatible-notification-example.json new file mode 100644 index 0000000..b1f4162 --- /dev/null +++ b/dev/slack-compatible-notification-example.json @@ -0,0 +1,13 @@ +{ + "channel": "#channel", + "icon_emoji": ":heart:", + "username": "Flux Deployer", + "attachments": [ + { + "color": "#4286f4", + "title": "Applied flux changes to cluster", + "title_link": "https://GITURL/USERNAME/kubernetes/commit/COMMITSHA", + "text": "Event: Sync: 0f34755, jabber:deployment/test\nCommits:\n\n* \u003chttps://GITURL/USERNAME/kubernetes/commit/COMMITSHA\u003e: change test to test webhook\n\nResources updated:\n\n* jabber:deployment/test" + } + ] +}