integrations / slack

Bring your code to the conversations you care about with the GitHub and Slack integration
https://slack.github.com/
MIT License
2.98k stars 468 forks source link

unsubscribe by label #1866

Open chriscdq opened 3 months ago

chriscdq commented 3 months ago

Is your feature request related to a problem? Please describe. Yes, the problem arises when dealing with a high volume of pull requests (PRs) generated by automation tools such as the renovate bot within GitHub. These PRs, while necessary, flood our Slack channels with notifications. The current GitHub integration with Slack does not offer a way to filter out these automated PR notifications by labels, which leads to an overwhelming amount of unnecessary alerts. For example, I'm always frustrated when I receive notifications for every single PR created by the renovate bot, most of which do not require my immediate attention.

Describe the solution you'd like I would like the GitHub integration with Slack to include a feature that allows users to unsubscribe from notifications for PRs with specific labels. This feature should enable users to specify one or more labels for which they do not wish to receive notifications in Slack. For instance, if I could unsubscribe from PRs labeled 'renovate', I would not receive notifications for PRs that are automatically created by the renovate bot, thereby significantly reducing the clutter in my Slack channels.

Describe alternatives you've considered As an alternative, I considered the possibility of muting all notifications for automated PRs or unsubscribing from PR notifications altogether. However, these approaches are too broad and would result in missing important updates. Another alternative could be creating a more complex set of rules for notifications based on the author of the PRs (e.g., muting notifications from known bots), but this would not be as effective as filtering by label, since bots can create PRs that are sometimes relevant and should not be entirely ignored. Goal can be also achieved by Subscribe only specific users - Issue 878 mute comments from bots - Issue 544

but subscribing by label is already present in features so maybe unsubscribing will be easier to achieve.

Additional context The primary reason behind this feature request is the need to manage the flood of notifications generated by the renovate bot and similar automation tools. The ability to unsubscribe by label would offer a more tailored approach to notification management, ensuring that team members remain informed about relevant updates without being overwhelmed by unnecessary information. This feature would significantly enhance the usability of the GitHub integration with Slack, especially for teams that utilize automation tools extensively.