abinoda / label-when-approved-action

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

Conditional labelling after approval #16

Open Ollymid opened 4 years ago

Ollymid commented 4 years ago

I have an idea for further improving this action. I've been searching for an workflow that automatically labels on approval and this fits the bill nicely. Frustratingly however the labeller will add the label on any approved PR, and I want it to be conditional perhaps based on a config file or on other labels applied to the PR.

For example I want to add a QA required label automatically, however there are some circumstances where this label is not the best label to add to an approved PR (e.g. dependency bump PRs get treated differently), so I want to be able to control when the auto action is triggered.

Could include issue #10 in this and add optional condition that approval required from all who review?