Skip to content

Slack: add mention on update option#85

Merged
GabrielSalla merged 1 commit intomainfrom
slack-add-mention-on-update
May 31, 2025
Merged

Slack: add mention on update option#85
GabrielSalla merged 1 commit intomainfrom
slack-add-mention-on-update

Conversation

@GabrielSalla
Copy link
Owner

No description provided.

@GabrielSalla GabrielSalla requested a review from Copilot May 31, 2025 18:44
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds a new option for Slack notifications to re-send mentions on update. Key changes include:

  • Introducing the "mention_on_update" flag in the SlackNotification class.
  • Updating the notification logic to delete and resend mentions when an alert is updated.
  • Adding a new test case and updating documentation accordingly.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
tests/plugins/slack/notifications/test_slack_notification.py New test confirming mention deletion and resend when "mention_on_update" is enabled.
src/plugins/slack/notifications/slack_notification.py Updated logic for handling mention re-sending and added "mention_on_update" to the SlackNotification options.
docs/plugins/slack.md Documentation updated to reflect the new "mention_on_update" option (duplicate parameter entry present).

@GabrielSalla GabrielSalla force-pushed the slack-add-mention-on-update branch 2 times, most recently from 855583f to fd26d55 Compare May 31, 2025 18:49
@GabrielSalla GabrielSalla force-pushed the slack-add-mention-on-update branch from fd26d55 to ee4404f Compare May 31, 2025 18:51
@GabrielSalla GabrielSalla merged commit 427e392 into main May 31, 2025
5 checks passed
@GabrielSalla GabrielSalla deleted the slack-add-mention-on-update branch May 31, 2025 18:55
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

Comments