kogitant / sonar-slack-notifier-plugin

SonarQube plugin for sending notifications to Slack
Other
73 stars 66 forks source link

Support wildcards in project key parameter #2

Closed poznachowski closed 8 years ago

poznachowski commented 8 years ago

Proposition: Add support for wildcards in project key parameter. I find option of asterisk '*' at the end of the key sufficient.

Rationale: Currently the plugin takes project key (ex. com.company:project) exactly as is.

If someone would like to make analysis on branches (via sonar.branch parameter), he would need to make appropriate changes in the plugin configuration (project key with branch would look like: com.company:project:branch_name). Considering some flow with short-term branches it would be really annoying.

If asterisk wildcard is implemented, I can specify com.company:project:* to send analysis of each projects` branches to a single Slack channel.

kogitant commented 8 years ago

Hi, excellent idea. I'll look into this.

poznachowski commented 8 years ago

I already submit PR for this: #3 :)

kogitant commented 8 years ago

Pull request merged, 2.0 release https://github.com/kogitant/sonar-slack-notifier-plugin/releases/tag/2.0 includes this. Thanks for the contribution!

lemmebee commented 3 years ago

Hi, I'm having a problem using project key parameter and configuring slack channel! Could you please help me with this?