-
Notifications
You must be signed in to change notification settings - Fork 2.4k
feat(slack): add support for top-level text field in Slack notificati… #4867
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
feat(slack): add support for top-level text field in Slack notificati… #4867
Conversation
…ons (prometheus#3071) Signed-off-by: mihir-dixit2k27 <mihidixi@gmail.com>
7f1af86 to
9669a53
Compare
Signed-off-by: mihir-dixit2k27 <mihidixi@gmail.com>
9f1f2ab to
95dc178
Compare
Signed-off-by: mihir-dixit2k27 <mihidixi@gmail.com>
95dc178 to
92a9b2d
Compare
go.sum
Outdated
| github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= | ||
| github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= | ||
| github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= | ||
| github.com/go-kit/log v0.1.0 h1:DGJh0Sm43HbOeYDNnVZFl8BvcYVvjD5bqYJvp0REbwQ= |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these changes to go.mod unrelated?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are absolutely correct—those changes were unintended updates caused by my local environment. I have reverted go.mod and go.sum to match main, so this PR now remains focused purely on the new feature
7512848 to
e3a2f93
Compare
Signed-off-by: Mihir Dixit <dixitmihir1@gmail.com>
8ed3af5 to
7822d5b
Compare
ultrotter
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Besides the go.mod changes in the diff, LGTM. Can you remove that please?
Signed-off-by: Mihir Dixit <dixitmihir1@gmail.com>
c9c940c to
d62cd5d
Compare
Spaceman1701
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does the resulting slack message look like when both text and message are set?
Spaceman1701
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for taking the time to make those changes!
Signed-off-by: Mihir Dixit <dixitmihir1@gmail.com>
c8f932d to
9c485f9
Compare
|
Files need |
Signed-off-by: Mihir Dixit <dixitmihir1@gmail.com>
47e65c0 to
aa62289
Compare
Signed-off-by: mihir-dixit2k27 <143348248+mihir-dixit2k27@users.noreply.github.com>
|
@SuperQ ready for re review |
Closes #3071
Changes:
messagefield toSlackConfig.textfield in the Slack JSON payload.Reasoning:
This allows users to send simple text messages compatible with Slack Workflow Webhooks, which cannot parse attachments.