Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add slack attachment template #10

Merged
merged 1 commit into from
Mar 20, 2024
Merged

Conversation

rchapin
Copy link
Contributor

@rchapin rchapin commented Mar 14, 2024

Adds a slack template that uses the legacy attachment element to enable the rendering of a colored bar to the left of the message.

@rchapin rchapin self-assigned this Mar 14, 2024
@rchapin rchapin force-pushed the rchapin-slack-attachment-template branch from 7de22d6 to b9625d7 Compare March 18, 2024 18:41
@rchapin rchapin force-pushed the rchapin-slack-attachment-template branch 2 times, most recently from c29dc1d to f26126e Compare March 18, 2024 19:22
@rchapin
Copy link
Contributor Author

rchapin commented Mar 18, 2024

@remi00 it looks like adding digest messages is going to be a bit more involved. This PR includes the single color-bar slack message template.

@rchapin rchapin marked this pull request as ready for review March 18, 2024 19:25
@rchapin
Copy link
Contributor Author

rchapin commented Mar 20, 2024

I created a slack app in a Slack Workspace of mine and setup a custom webhook notification channel. Following is the result of testing the notification.
image

Following is the result of adding the notification channel to a test policy and enabling it, and then clearing it.
image

Looks like this works exactly as we expect it to.

@rchapin rchapin merged commit 7e63121 into main Mar 20, 2024
2 checks passed
@rchapin rchapin deleted the rchapin-slack-attachment-template branch March 20, 2024 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant