GoogleCloudPlatform / GoogleCloudPlatform/cloud-build-notifiers

SlackNotifier message notification popup says "no preview available" in Slack desktop client for Windows

Open
#180 11 comments 6 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
157
Forks
144
Avg merge
1h 34m
Merged PRs (30d)
1

Description

I've setup the SlackNotifier in my GCP build pipeline, everything is working pretty well but when messages come through in the Slack desktop client for Windows, the notification popup says "no preview available" even though the actual message in Slack appears fine.

[![enter image description here][1]][1]
[![enter image description here][2]][2]

This seems to be due to the fact that in the WebhookMessage post, the "Text" property is not included and Windows / Slack (on Windows) not supporting rich-text content. Slack documentation suggests including the "Text" property in the payload which will be used as fallback when rich-text is not supported.

More details are available in the StackOverfow issue I posted: https://stackoverflow.com/questions/76657027/google-cloud-build-slack-notifier-message-no-preview-available

The posted answer explains the (suspected) problem and solution and he even created a fork with suggested code changes - https://github.com/onix/cloud-build-notifiers/commit/e83dab3997e1b187d2217086434289effc9b79b5

[1]: https://i.stack.imgur.com/aVxkf.jpg
[2]: https://i.stack.imgur.com/0uKwP.jpg

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.