jenkinsci / slack-plugin

A Jenkins plugin for posting notifications to a Slack channel
https://plugins.jenkins.io/slack/
672 stars 413 forks source link

Allow null for color, and do not add if if is null. #971

Open risingfish opened 1 month ago

risingfish commented 1 month ago

What feature do you want to see added?

We don't use the color option, and in fact it is not used at all if blocks are used, or if there are attachments. We have a mixture of simple message, and some complex blocks, and it's distracting seeing the default dim gray bar on some messages and not others. Allow color: null (or something else along those lines) when using a simple message without blocks, and don't set the color property for the message in those cases.

Here's an example of the inconsistency between block messages and non-block messages: image

Upstream changes

No response

Are you interested in contributing this feature?

No response

timja commented 1 month ago

Adding sendAsText: true might achieve the same thing?

risingfish commented 1 month ago

Adding sendAsText: true might achieve the same thing?

I assume that will disable markdown? We're using that in a few places as well.