Auto-merge: approvalQuota + groupQuota

We have a group (with 3 people) auto-added to pull requests, and want the auto-merge to require one member of the group plus one other person (somebody not in the group).

We tried to accomplish this with "approvalQuota >= 100% & groupQuota >= 1", however the approvalQuota also applied to all members of the group.

Is there a way to make this work?

Thanks!

1 answer

This widget could not be displayed.

Try adding that other person as a mandatory reviewer. Then also set the approvalQuota to a small value (say 10%). Workzone will check if at least one person from the group has approved AND if the mandatory reviewer has approved. 

In our case, it's up to the user submitting the pull request to add the other person. It could be whoever they want, probably usually whoever did their code review or just somebody on their team or something like that.

The way it works makes sense in retrospect, but we mistakenly thought that approvalQuota included individuals who are not a part of a group. That might be worth clarifying in the documentation.

We were able to get it to work more or less OK for us now by using "groupQuota >= 1" along with the built-in requirement that pull requests be approved by two people. So now they have to have at least two approvals, and at least one of those has to be from our group.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 22, 2018 in Marketplace Apps

How a Marketplace app tech team is achieving gender diversity

Hello! My name is Genevieve Blanch, and I'm the Marketing Manager at RefinedWiki, creators of apps to give teams the tools to customize Atlassian platforms. Currently, 44% of the tech team at Re...

481 views 3 17
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you