Seravo / seravo-plugin

Enhances WordPress with Seravo specific features and integrations
https://seravo.com/
GNU General Public License v2.0
37 stars 16 forks source link

Enhance Slack webhook message readability #458

Open TeemuSuoranta opened 3 years ago

TeemuSuoranta commented 3 years ago
seravo-webhook

Is your feature request related to a problem? Please describe. You can include a Slack webhook URL that is pinged when updates fail. This is a much appreciated feature but at the moment reading these notification can be difficult to read as there is no repeating format and the site name is not emphasised.

Describe the solution you'd like Create a format for these messages that makes it easy to look through these messages that might be pointed to a single Slack channel.

For example:

**{Site name}** {Site URL}: Cannot proceed with updating as the live site has errors that need to be addressed first

Seravo https://seravo.fi: Cannot proceed with updating as the live site has errors that need to be addressed first

If it is possible to point to additional info, it could be also like:

**{Site name}** {Site URL}: Cannot proceed with updating as the live site has errors that need to be addressed first. See more info at {URL to admin page}

The actual sending logic is outside of this plugin and probably inside some server scripts so I couldn't make a PR for these changes.

TeemuSuoranta commented 3 years ago

As there are notifications for both successful and failed attempts, you could also prefix the messages by emojis like 🆘 / ✅ so that issues can be easier to spot from other messages.

ottok commented 3 years ago

Thanks, good ideas!