okae

Okae vs CODEOWNERS and rulesets: routing beyond file paths

You already have a built-in way to route PRs. CODEOWNERS says who owns which paths. Since February, rulesets can also require named teams to approve when a PR touches files matching a pattern.

1 min readUpdated

Both route by path. Here's where that stops working.

The short version: CODEOWNERS identifies owners for matching paths. Okae assesses whether a PR needs a person under your policy. Required reviews still apply.

Same folder, different risk

CODEOWNERS knows src/billing/ is sensitive. It can't tell a typo fix in that folder from a change to how refunds round, so both go to the billing team.

It also can't see risk outside the paths you listed. A new query that reads customer emails from a file in src/reports/ sails past, because nobody thought to protect src/reports/.

Okae looks at what the change does, wherever it lives.

Rules route. They don't approve.

Rulesets can require reviews from the right people for matching paths. Depending on your rules, a PR may still need a human approval, including a lockfile bump your agent opened at 2am.

Okae can approve a PR under your policy. A separate requirement for a code owner's or named team's review still applies.

Use both

Keep CODEOWNERS for the paths where you want an owner involved. Okae's assessment can help with other PRs, and your required reviews still apply wherever you configure them.

FAQ

Will Okae approve a PR that CODEOWNERS says needs review?

An Okae approval can't override a required review. Your branch protection still decides what can merge.

Try Okae on your own PRs. The first 100 are free.