jenkinsci / slack-plugin

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

Fix cleanChannelName() to return extracted `channel` even if channelName doesn't have `#` prefix #976

Closed KojiNakamaru closed 1 month ago

KojiNakamaru commented 1 month ago

This patch fixes cleanChannelName() to return extracted channel even if channelName doesn't have # prefix.

cf. https://github.com/jenkinsci/slack-plugin/pull/965

Testing done

The code was packaged by mvn package and passed existing tests. The resulting hpi was installed on a jenkins server (version 2.460) and was confirmed to run correctly.

Submitter checklist