mergeable icon indicating copy to clipboard operation
mergeable copied to clipboard

[Feature Request] Stipulate all sub-events of an event, except for a specific one (blacklist - all but one)

Open dgteixeira opened this issue 3 years ago • 2 comments

Hello all, this is a Feature Request!

What I'd like to accomplish is selecting all the events under - pull_request.* - except closed - pull_request.closed through a regex. This, instead of detailing every single event within pull_request.

It would stop mergeable app from requesting review when the PR is merged to main.

It could be deployed something as this:

mergeable:
  - when: pull_request.^(?!closed).*
    name: 'Request Review from operations team'

EDIT: More details

dgteixeira avatar Dec 21 '21 17:12 dgteixeira

@dgteixeira i think this is a great idea

shine2lay avatar Dec 22 '21 21:12 shine2lay

@shine2lay, thanks!

I've been a heavy user of Mergeable app these past few days (since I discovered it) and there are a few itens I would love to see deployed. It started with the limitation of CODEOWNERS only allowing 1 approval team per file, but now I believe it will be the center of our GitHub-centered workflows 😎

dgteixeira avatar Dec 23 '21 10:12 dgteixeira