Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slack app notifications: No preview available #29

Open
multiplegeorges opened this issue Oct 27, 2020 · 2 comments
Open

Slack app notifications: No preview available #29

multiplegeorges opened this issue Oct 27, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@multiplegeorges
Copy link

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!

@jplhomer jplhomer added the enhancement New feature or request label Nov 10, 2020
@abierbaum
Copy link

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants