# palantir/policy-bot

A GitHub App that enforces approval policies on pull requests

Repository: https://github.com/palantir/policy-bot
Canonical: https://ross.abutalabs.com/products/policy-bot
Language: Go
License: Apache-2.0
License Family: permissive
Topics: golang, github-app, code-review, approval, policy, octo-correct-managed
Last push: 2026-09-02T22:44:29+00:00

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 100, release rhythm 94, longevity 100
- inputs: {"age_days": 2890, "days_push": 0, "days_rel": 43, "gap_med": 29, "n_releases_24m": 18}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1048, forks 155 (observed 2026-09-03T02:15:16.706369+00:00)

## What it is
policy-bot is a GitHub App that enforces configurable approval policies on pull requests by reporting a status check. It supports complex rules based on reviewers, files, authors, and branches, combined with and/or logic, configured via a policy.yml file in each repository.

## Use cases
- require reviews from specific teams before merging
- enforce different approval rules based on changed files
- combine multiple approval rules with and/or conditions
- auto-approve pull requests meeting certain conditions
- set up required status checks for code review policy
- view detailed approval status of a pull request

## When to choose
- GitHub's native required reviews are too simple for your workflow
- you need file-, author-, or branch-based approval rules
- you want policy-as-code configured per repository
- you need a self-hosted GitHub App with a status-check UI

## When to avoid
- you don't use GitHub
- you only need simple required reviews
- you want a fully managed SaaS without self-hosting

## Facets
- artifact type: service
- maturity: active
- function: code-review, security, developer-tools, workflow-automation
- domain: developer-tools, version-control
- platform: self-hosted
- tags: github-app, pull-requests, approval-policies, golang, code-review-automation, automation, docker, web-server

## Member repositories
- palantir/policy-bot (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-09-03T02:15:16.706369+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:01:58.833221+00:00, confidence not recorded.
  - readme: https://github.com/palantir/policy-bot (fetched 2026-09-03T02:15:16.706369+00:00, sha f750c3fb516b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
