Skip to content

Commit 6d6e752

Browse files
Disable emoji parsing in Slack
Avoid polluting the automated Git response with emojis
1 parent 4dd5d80 commit 6d6e752

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/merge_bot/merge_bot.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,17 @@ def message_slack(webhook_url, msg):
133133
if webhook_url is None:
134134
return
135135
# Cut long messages to 500 chars
136-
requests.post(webhook_url, json={"text": msg[:500]})
136+
requests.post(
137+
webhook_url,
138+
json={
139+
"blocks": [
140+
{
141+
"type": "section",
142+
"text": {"type": "plain_text", "text": msg[:500], "emoji": False},
143+
}
144+
]
145+
},
146+
)
137147

138148

139149
def grab_go_version_from_go_mod():

0 commit comments

Comments
 (0)