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

Workflow subscriptions for main branch only #1893

Open johnament opened 1 month ago

johnament commented 1 month ago

Describe the bug Using the following subscription:

/github subscribe owner/repo workflows:{name:"Workflow name" branch:"main"}

I'm expecting to only see executions of that workflow against the main branch. But I'm actually seeing all executions of that workflow, regardless of event.

To Reproduce Steps to reproduce the behavior:

  1. Setup listed subscription
  2. Trigger workflow on main branch, see that it posts
  3. Trigger workflow execution on another branch, see that it still posts
  4. File issue on github

Expected behavior Some configuration exists that allows me to only report workflow runs on main branch.