abinoda / label-when-approved-action

GitHub Action that labels approved pull requests
MIT License
191 stars 130 forks source link

Being able to change number of required reviews based on existing labels #18

Open akaralar opened 4 years ago

akaralar commented 4 years ago

We want the ability to change the required number of reviews based on some existing labels.

Our usecase is like this: We require at least 2 reviewers on each PR, but some parts of the repo are more sensitive and we want 3 reviewers on those PRs and label them with 3-reviewers, so that even though github enables merging after 2, by convention we don't merge them unless they get 3 reviews. So basically we want to be able to define different steps based on the presence of a particular label.

Would it be possible to express this in this action?