policy-bot icon indicating copy to clipboard operation
policy-bot copied to clipboard

Condition for not having specific label(s)

Open GabrielCFigueira opened this issue 4 months ago • 6 comments

At my company, the need arose for a condition that returns true if the PR does not have a (specific) label. For this, it would be useful to have a "has_not_labels" condition, similar to "has_labels", that holds a list of labels and is satisfied if the PR does not have any of the labels in the list (otherwise, it is not satisfied).

I want to have a policy that does certain checks if a label is present, but just blankly approve if the label is not present.

Would this change make sense, and would you be open to a contributing PR?

GabrielCFigueira avatar Mar 14 '24 17:03 GabrielCFigueira