Skip to content

Add the ability to configure slack markdown field#1967

Merged
simonpasquier merged 4 commits intoprometheus:masterfrom
asherf:slack
Jul 31, 2019
Merged

Add the ability to configure slack markdown field#1967
simonpasquier merged 4 commits intoprometheus:masterfrom
asherf:slack

Conversation

@asherf
Copy link
Copy Markdown
Contributor

@asherf asherf commented Jul 20, 2019

Closes #1220.

Copy link
Copy Markdown
Contributor

@stuartnelson3 stuartnelson3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Could you add a test to config/notification_test.go?

https://github.com/prometheus/alertmanager/blob/master/config/notifiers_test.go

Signed-off-by: Asher Foa <asher@asherfoa.com>
@asherf asherf force-pushed the slack branch 2 times, most recently from 78b4179 to 3c06e65 Compare July 28, 2019 21:16
Signed-off-by: Asher Foa <asher@asherfoa.com>
Comment thread config/notifiers_test.go Outdated
Signed-off-by: Asher Foa <asher@asherfoa.com>
@asherf
Copy link
Copy Markdown
Contributor Author

asherf commented Jul 29, 2019

I am happy to add more test cases or more tests for this if this is need....
any other feedback is welcome as I am new to Go and this code base.

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
Copy link
Copy Markdown
Member

@simonpasquier simonpasquier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@simonpasquier simonpasquier merged commit f45f870 into prometheus:master Jul 31, 2019
@simonpasquier
Copy link
Copy Markdown
Member

Thanks!

DuskEagle pushed a commit to DuskEagle/alertmanager that referenced this pull request Aug 1, 2019
* slack markdown field config

Signed-off-by: Asher Foa <asher@asherfoa.com>

* Add Test

Signed-off-by: Asher Foa <asher@asherfoa.com>

* remove empty lines

Signed-off-by: Asher Foa <asher@asherfoa.com>

* add empty line

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
@DeathBorn
Copy link
Copy Markdown

But everybody forgot to add this to documentation :(

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.

Make Slack notification's mrkdwn_in configurable

4 participants