voxmedia / github-action-slack-notify-build

Report GitHub Actions build status on Slack
Other
252 stars 131 forks source link

Slack app notifications: No preview available #29

Open multiplegeorges opened 3 years ago

multiplegeorges commented 3 years ago

Hey all,

Great action, I've added to all our builds. Really easy to get going.

One issue I've noticed: The messages have no content, they consist solely of message attachments, so Slack can't generate a preview to put into an OS-level notification. I use OSX, so I can't confirm the behaviour on other platforms.

Thanks again!

abierbaum commented 3 years ago

Has anyone found a workaround for this? I would really just like to have maybe the build name and the status string. That way I could get a slack notification of "Build X: SUCCESS" or "BUILD X: FAILED". As it stands right now I have to keep going to the slack channel to see the status.

multiplegeorges commented 2 years ago

I looked into implementing this feature. It is possible and it requires the addition of a text parameter to the Slack client's postMessage API call.

However, that text is not only used for the notification preview. It is also included in the channel message, which leads to some ugly duplication of info. The current format of the channel is so clean that I decided against it.

It'd be great if Slack could include a preview parameter, but no such luck at this time.