integrations / slack

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

Allow subscribing to github repos with scope notifications #1642

Open tmchow opened 1 year ago

tmchow commented 1 year ago

Describe the bug It should be posslble to scope the github subscription in slack with the syntax /github subscribe org/repro <keyword> just like when you unsubscribe.

if You don't provide a keyword today, it subscribes you to all entities (releases, deployments, issues, commits). But if you provide a scoping, it doesn't do anything.

So if you just want to subscribe to releases, you have to:

  1. call /github subscribe org/repo when then subscribes you to everything
  2. call /github subscription org/repo <keyword> and for the keyword, specify one at a time issues, commits, deployments and pulls

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior Should be able to call /github subscribe org/repo releases to subscribe to releases of the specfied repo and not be forced to subscribe to issues, commits, etc.

Screenshots n/a

Additional context Add any other context about the problem here.