# Review Automation

### How to Configure

Review Automation requires GitHub write access. Once granted, proceed to **Baz → Settings → Configurations → Review Automation**.

Choose which capability you would like to configure:

* **Auto Approve Pull Requests**
* **Auto Resolve Review Threads**

<figure><img src="https://3328658395-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVjqbueGEV6lEh1M5NENO%2Fuploads%2FKmuEK3mbpceFWUmhNrHi%2FScreenshot%202026-02-25%20at%2016.34.59.png?alt=media&#x26;token=d5ec5043-e67e-4972-a0ac-ac1f58028d97" alt=""><figcaption><p>Review Automation Configuration</p></figcaption></figure>

### Auto Approve Pull Requests

When enabled, Baz will automatically approve a PR only if all configured conditions are met.\
If any condition is not satisfied, no approval is added.

#### Available Conditions

You can combine the following conditions:

* Repository
* Authors
* Excluded file paths
* Maximum lines changed
* Maximum files changed

#### Example

* Repo: `frontend-app`
* Max lines changed: 200
* Exclude path: `/migrations/`
* Author: specific team members

Baz will approve only PRs that match all of the above.

### Auto Resolve Review Threads

When enabled, Baz may automatically resolve PR comment threads under strict conditions.\
This helps reduce manual cleanup of addressed comments.

#### Default Condition

Baz will only resolve a thread **if a later commit has already addressed the comment**.\
This condition is always enforced and does not require configuration.

#### Available Conditions

* Repository
* Comment author
