---
title: "Merge Control: Control simple and advanced merge conditions"
description: "Workzone’s automated pull request merge control is easy and straightforward to configure by defining some simple merge conditions: ![](https://izymes.com/wp-content/uploads/2022/06/Group-105-1-1024x663.png) For a simple merge condition all or a subset of the following criteria are *AND *combined to allow a merge to happen or block it:…"
url: "https://izymes.com/docs/workzone-merge-control-control-simple-and-advanced-merge-conditions/"
updated: "2023-12-14"
category: Feature Guide Workzone
---

# Merge Control: Control simple and advanced merge conditions

Workzone’s automated pull request merge control is easy and straightforward to configure by defining some simple merge conditions:

![](https://izymes.com/wp-content/uploads/2022/06/Group-105-1-1024x663.png)

For a simple merge condition all or a subset of the following criteria are *AND *combined to allow a merge to happen or block it:

- **Reviewers approval quota/count** – how many percent or number of reviewers must approve.
- **Reviewers group quota** – how many members of a reviewer group must approve
- **Required mandatory approvals** - How many approvals must be given from mandatory reviewers
- **Required digital signatures** – how many approvals must have a [digital signatures](https://www.izymes.com/docs/workzone-workzone-compliance/) for CFR Part 11 compliance
- **Required successful builds** – how many successful build results must be associated with the pull request’s source branch *HEAD*

### Advanced Merge Conditions

Often the required merge condition can’t be expressed in a simple *AND *combination. Workzone features a powerful boolean expression parser that allows you to configure any boolean merge condition using the above criteria.

Use ‘*approvalQuota*‘, ‘*groupQuota*‘, ‘*approvalCount*‘, ‘*mandatorApprovalCount*‘, ‘*requiredBuildsCount*‘, ‘*requiredSignaturesCount*‘ and ‘*< > = ( )*‘ to build an expression. For example

```
"requiredBuildsCount > 1 & ( approvalQuota >= 50% | groupQuota >= 2 ) &
requiredSignaturesCount > 2"
```

The pull request will be automatically merged if: more than 2 digital signature and more than 1 successful build and 50% or more of reviewers have approved

OR

More than 2 digital signature and more more than 1 successful build and 2 or more members per reviewer-group have approved.

![](https://izymes.com/wp-content/uploads/2022/06/Group-106.png)

#### Set required file/path approvals in reviewer configuration

File/Path quotas will be evaluated as merge-checks along with all other Workzone merge conditions for matching pull requests.

![](https://izymes.com/wp-content/uploads/2022/06/filepath-approvals-in-reviewer-configuration-1-1024x681.png)
Required file/path approvals as additional merge checks for matching pull requests.

   [Try Workzone!](https://marketplace.atlassian.com/apps/1211303/workzone-pullrequest-workflow?hosting=datacenter&tab=overview)
