Searching for an action that blocks merging based on labels

Title sums it up pretty well.

I’m currently looking for a GitHub Action that would either return a success or failure depending on what labels have been added/removed from the Pull request.
For context: I’m part of a Repository where we have a specific PR setup where draft PRs are seen as “not ready”, normal PRs are seen as “ready for review, but not mergable” and PRs with the “Status: Ready” label are also mergable.

So now would I like to use/setup a Action that would return a successful check/run when the PR has the “Status: Ready” label, therefore allowing you to merge the PR, and otherwise have it set to/return false to prevent the merging from happening.

Is there something like that?

1 Like

You might find Require Labels · Actions · GitHub Marketplace · GitHub useful

1 Like