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

Enable Slack Notifications by Team #1868

Open meganoceros opened 2 months ago

meganoceros commented 2 months ago

Is your feature request related to a problem? Please describe. We have teams that often work in shared repos, so it's really noisy when we turn on notifications for the repo. We just want notifications for our team members' interactions.

Describe the solution you'd like It would be really nice to be able to subscribe to notifications based on team instead of needing to specify a repo. Then we'd get notified of any interaction the team has, regardless of repo. A bonus would be the ability to exclude repos or have other exclusion criteria. EDIT: It would also be really nice if these notifications behaved like the individual real-time alerts (under scheduled reminders), but could go to a slack channel instead of a DM

Describe alternatives you've considered We've tried filters, but they don't really support teams either (labels is the closest we can get). We're also looking at third party solutions.

Additional context N/A

Freyert commented 1 month ago

We've tried using an action to label PRs by CODEOWNERS, but the label needs be added before opening the PR in order to get the notification. The integration only listens for open, close, and reopen events.

So close and yet sooooooo far.

Related issues:

This sort of filtering is of course supported by the APIs themselves and the fact that the integration can already filter by labels makes it a bit silly we can't filter by at least the author or assignees.

https://docs.github.com/en/issues/tracking-your-work-with-issues/filtering-and-searching-issues-and-pull-requests#sharing-filters