Skip to content

Commit 984b723

Browse files
authored
Merge pull request #68 from DataDog/albertvaka/replace-at
Replace @ in events to avoid notifying @mentions
2 parents 102231c + cbbefb3 commit 984b723

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

datadog_callback.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def _send_event(self, title, alert_type=None, text=None, tags=None, host=None, e
9292
try:
9393
datadog.api.Event.create(
9494
title=title,
95-
text=text,
95+
text=text.replace('@','(@)'), # avoid notifying @ mentions
9696
alert_type=alert_type,
9797
priority=priority,
9898
tags=tags,

0 commit comments

Comments
 (0)