mirego / dispatch

🦀 Dispatch makes sure pull requests within a GitHub organization get reviewed by the right people.
https://open.mirego.com
BSD 3-Clause "New" or "Revised" License
25 stars 3 forks source link

Support multi-stack repositories #13

Open remi opened 5 years ago

remi commented 5 years ago

Currently, we configure the stacks used for pull requests created in a repository with a comma-separated list of stacks:

https://my-dispatch-app.com/webhooks?stacks=elixir,graphql

For repositories containing multiple applications however, it would be great to specify stacks for each root subdirectory:

https://my-dispatch-app.com/webhooks?stacks[api]=elixir,graphql&stacks[webapp]=webapp

If a pull request is created, we could look at the list of impacted files and extract stacks based on root subdirectories included in the list. So for example if the list of impacted files is:

The stacks used to fetch experts/learners for the pull request would be elixir and graphql.

The rest of the process would stay the same — for example contributors for the whole repository would be considered, not “contributors in the api subdirectory”.