From 26802678b64f118dc4809de14901e474eda4bcec Mon Sep 17 00:00:00 2001 From: Lauri Heiskanen Date: Thu, 22 Jun 2023 12:01:58 +0300 Subject: [PATCH 1/2] Add UnfurlLinks and UnfurlMedia to WebhookMessage * to support 'classic unfurl' configuration options in webhook messages. * https://api.slack.com/reference/messaging/link-unfurling#classic_unfurl --- webhooks.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webhooks.go b/webhooks.go index e3233536a..8fc149d90 100644 --- a/webhooks.go +++ b/webhooks.go @@ -24,6 +24,8 @@ type WebhookMessage struct { ReplaceOriginal bool `json:"replace_original"` DeleteOriginal bool `json:"delete_original"` ReplyBroadcast bool `json:"reply_broadcast,omitempty"` + UnfurlLinks bool `json:"unfurl_links,omitempty"` + UnfurlMedia bool `json:"unfurl_media,omitempty"` } func PostWebhook(url string, msg *WebhookMessage) error { From f7a929c301a98294e7d78fc0a049c71c2d1c533b Mon Sep 17 00:00:00 2001 From: Lorenzo Aiello Date: Sat, 13 Jul 2024 18:30:09 -0700 Subject: [PATCH 2/2] Trigger GitHub Actions