> ## Documentation Index
> Fetch the complete documentation index at: https://docs.revolte.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Set approval policies by environment and risk

> Match the level of human review to the risk of each environment.

The riskier the environment, the more review it should need. Revolte lets you set this per environment, so a Preview can move quickly while Production waits for a person.

**1. Map branches to environments**

Decide which Git branches deploy to Production, Staging and QA. See [Configure app and branch settings](https://docs.revolte.ai/yaml/repo-preferences/app-branch-settings.md).

**2. Add quality gates before the build**

Run code review, code quality and tests before every build. Set them per environment where you need different rules. See [Configure pre-build workflows](https://docs.revolte.ai/yaml/repo-preferences/prebuild-workflow.md) and [Environment pre-build flow](https://docs.revolte.ai/yaml/environment-settings/pre-build.md).

**3. Require approval for sensitive environments**

Add a manual approval gate to the pipeline so a person approves before a deployment continues. See [Pipelines and approvals](https://docs.revolte.ai/deployments/pipeline.md).

**4. Commit the configuration**

Changes made in the Revolte UI take effect only after you commit them back to your repository. See [Sync configuration changes](https://docs.revolte.ai/yaml/syncing.md).

## Example policy

This is an example, not a default. Adjust it to your own risk.

| Environment | Quality gates | Manual approval |
| :- | :- | :- |
| Preview | Code review | No |
| QA | Code review, code quality and tests | No |
| Production | Code review, code quality and tests | Yes |

## Where people decide

See [Approval gates and audit logs](https://docs.revolte.ai/admin/approval-gates.md) for how gates and records work, and the [human-in-the-loop model](https://docs.revolte.ai/concepts/human-in-the-loop.md) for the three checkpoints that apply to every task.

## Next

> [card] [Roll out Revolte across teams](https://docs.revolte.ai/use-cases/organizations/roll-out-revolte.md)

> [card] [Admin and security](https://docs.revolte.ai/admin/overview.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.