Counting approvals – Finally
I don’t know why it took us so long to make counting the number of approvals for a pull request available in Workzone.
Finally Workozone allows you to create merge conditions with an ‘approvalCount’.
Workzone now supports absolute pull request reviewer approval counts in merge conditions. For example
'approvalCount > 1'
Will merge (or allow a pull request to be merged) when more than one reviewer have approved.
This enables merge checks where pull requests need at least ‘some’ approval before they can be merged.
Available Merge Condition in Workzone
Here is a quick recap on available merge conditions.
approvalCount | absolute number of reviewer approvals |
approvalQuota | relative amount of reviewer approvals based on total reviewer count |
groupQuota | absolute number of approvals per reviewer group |
groupQuota[‘group_name’] | absolute number of approvals for a named reviewer group |
requiredBuildsCount | absolute number of successful builds against the pull request’s source tree branch HEAD |
requiredSignaturesCount | absolute number of digital signature approvals |
Learn More