Description
policy-bot is a GitHub App that enforces approval policies on pull requests. It creates a status check on the head commit of each pull request, which you can mark as a required status check in GitHub. GitHub's own required reviews are fairly basic, so policy-bot adds richer approval rules. You can require reviews from specific users, organisations or teams, apply rules based on the files, authors or branches involved in a pull request, combine rules with and and or conditions, and approve pull requests automatically when set conditions are met. Behaviour is set by a policy file in each repository, and the documentation covers designing policies, rules and predicates, the policy.yml specification, testing and debugging policies, and a simulation API. The app also has a UI that shows the detailed approval status of any pull request. It is open source and developed on GitHub under Palantir.…
Highlights
- Approval policies enforced as a status check
- Reviews from users, organisations or teams
- Rules based on files, authors and branches
- and and or conditions for rules
- Policy file per repository and a status UI
Ratings & Reviews
No ratings yet
Be the first to rate Policy Bot.
People also visit
Policy Bot FAQ
What does policy-bot do?
It enforces approval rules on GitHub pull requests by reporting approval as a status check.
How is it configured?
Each repository has a policy file. The documentation includes a policy.yml specification and guides on designing policies and rules.
What can an approval rule check?
The files, authors or branches involved in a pull request, and reviews from specific users, organisations or teams.
Can it approve pull requests automatically?
Yes. It can automatically approve pull requests that meet the conditions in the policy.
Is it open source?
Yes. The source is public on GitHub under palantir.
What are the best Policy Bot alternatives?
Popular alternatives to Policy Bot include PullApprove, CodeApprove and Manual Approval. See all Policy Bot alternatives












