Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ AI agents now write and review code faster than people can read it, so human rev
the bottleneck. Most pull requests are low risk, and a few cause most incidents. opendrs measures
each PR's **blast radius** and risk: what the change touches, how many files depend on it, the
history of the files it changes, author experience, missing tests and critical paths. It turns
that into a 0-1 score with a logistic model over signals from your own git history; no LLM or API key is
that into a 0-1 PR risk score with a logistic model over signals from your own git history; no LLM or API key is
needed. A team then sets a policy.
For example, a PR that scores below 0.3 and has passed an AI review (Claude, CodeRabbit, Copilot
or any check run) is approved and sent to the merge queue or auto-merge. Riskier PRs still wait
for a human. The approach follows Meta's Diff Risk Score (DRS); opendrs is an independent,
open-source implementation that runs in any git repository, with no service to host.

**Contents:** [Install](#install) · [Quick start](#quick-start) · [How it works](#how-it-works) ·
**Docs:** [error-path.github.io/opendrs](https://error-path.github.io/opendrs/) · **Contents:** [Install](#install) · [Quick start](#quick-start) · [How it works](#how-it-works) ·
[Features](#features) · [Results](#results) · [CLI and MCP](#cli-and-mcp) ·
[Documentation](#documentation) · [Limitations](#limitations) ·
[Compared with other tools](#compared-with-other-tools) · [Prior art](#prior-art-and-credits)
Expand Down
7 changes: 7 additions & 0 deletions docs/github-action.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,13 @@ To set up a queue: add a branch ruleset for the default branch with *Require mer
`merge_group` to the triggers of the workflows that run your required checks (your CI, not the
opendrs workflow). Give the opendrs job `contents: write`.

GitHub's docs say the built-in `GITHUB_TOKEN` cannot add pull requests to a merge queue
([GitHub](https://docs.github.com/en/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions)).
To enqueue, pass a GitHub App token or a personal access token with merge permission as the
`github-token` input, as opendrs's own workflow does with a GitHub App
([`opendrs.yml`](https://github.com/error-path/opendrs/blob/main/.github/workflows/opendrs.yml)).
With the default token, the approval stays and the Action logs a warning when enqueueing fails.

If enabling auto-merge or enqueueing fails (for example "Pull request is in clean status", or
auto-merge is not allowed), the approval stays and the Action logs a warning.

Expand Down
Loading