integrations / microsoft-teams

Bringing your code and work to the conversations you care about with the GitHub and Microsoft integration
428 stars 95 forks source link

How to subscribe to multiple workflows and events? #314

Open mloskot opened 1 year ago

mloskot commented 1 year ago

The workflwos: feature seem to accept only single workflow, in mutually exclusive manner.

This works perfectly well, as expected and documented:

@github subscribe org/repo workflows:{name:"w1" event:"schedule"}

However, this will clear the previous one

@github subscribe org/repo workflows:{name:"w2" event:"workflow_dispatch"}

None of these are considered valid and accepted:

workflows:{name:"w2" event:"workflow_dispatch"},{name:"w1" event:"schedule"}
workflows:{name:"w2" event:"workflow_dispatch",  name:"w1" event:"schedule"}
workflows:{name:"w2" event:"workflow_dispatch"}  workflows:{name:"w1" event:"schedule"}
workflows:{name:"w2" event:"workflow_dispatch"}, workflows:{name:"w1" event:"schedule"}

How to subscribe to multiple workflows and events is not documented anywhere in the Readme.md

jacekkk commented 1 year ago

@mloskot I know it's been a few months since you've opened this issue, so it's probably too late but thought I'd post this in case anyone else is looking for solution. I've had a similar problem and have finally managed to figure out how to subscribe to multiple (specific) workflows: workflows:{name:"first_workflow,second_workflow,third_workflow"

But I don't think this will allow you to map specific workflow to a specific event.

mloskot commented 1 year ago

@jacekkk Thanks for the tip, may be useful indeed.