---
title: "Get a rename across a dozen owner teams through code owner review | Proofline"
description: "When a mechanical change requests a dozen owner teams, split it by owner or stack it, so each team approves only its own slice."
url: https://proofline.sh/learn/codeowners-large-cross-cutting-change/
---

[Learning center](/learn/)

# Get a rename across a dozen owner teams through code owner review

When a mechanical change requests a dozen owner teams, split it by owner or stack it, so each team approves only its own slice. Approve centrally only through a recorded exception. Adding a central team to every CODEOWNERS line lets it stand in for the owners on all later changes, not just this one.

Code review The Proofline team November 23, 2026 5 min read

## Why one change requests so many teams

GitHub requests code owners per file: "Code owners are automatically requested for review when someone opens a pull request that modifies code that they own." [About code owners](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners#about-code-owners) With **Require review from Code Owners** on, "any pull request that modifies content with a code owner must be approved by that code owner." [Require a pull request before merging](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets/available-rules-for-rulesets#require-a-pull-request-before-merging) A rename of a shared package touches an import in every service, so it collects one required approval per owning team.

Each of those teams is being asked about a one-line import change in its directory. None of them is in a position to judge the rename as a whole, and the last approval decides when the pull request can merge.

## The wait gets longer as approvals arrive

Two settings commonly used beside code owner review make a long wait worse. With stale review dismissal on, an approval is dismissed when "a contributor pushes new changes to the pull request branch or clicks **Update branch**, or because a related pull request is merged into the target branch." With either stale dismissal or required approval of the most recent push on, "approving reviews will be dismissed as stale if the merge base introduces new changes after the review was submitted." [Require a pull request before merging](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets/available-rules-for-rulesets#require-a-pull-request-before-merging) A pull request that touches every service is likely to conflict with other merges while it waits, and each rebase can cost approvals already collected.

## A fictional rename

Suppose the fictional `acme/shop` monorepo renames its internal logging package from `@acme/log` to `@acme/telemetry`. A codemod rewrites imports in 12 services. The CODEOWNERS file gives each service to its own team:

```
*                        @acme/platform
/services/billing/       @acme/billing
/services/catalog/       @acme/catalog
/services/checkout/      @acme/checkout
# ...nine more service teams...
/packages/log/           @acme/platform
```

The single pull request requests 13 teams: 12 services and platform for the package itself. Stale reviews are dismissed on push. Over several days the author collects approvals, rebases after a conflict in `checkout`, and loses them.

## Option 1: split by owner

Make the old and new names both work, for example by having `@acme/log` re-export `@acme/telemetry`. Land that in one pull request reviewed by `@acme/platform`. Then open one pull request per service, each touching one team's directory, and remove the old name last.

This keeps owner review exactly as the file intends: each team approves its own slice, and a slow team delays only its own service. It costs a compatibility shim, a period in which two names exist, and 14 pull requests to track.

## Option 2: stack the slices

GitHub's stacked pull requests, generally available on all github.com plans since October 2026, let you keep the slices but land them together. [Stacked pull requests changelog](https://github.blog/changelog/2026-10-06-stacked-pull-requests-generally-available/) A stack is "a series of pull requests in the same repository where each pull request targets the branch of the pull request below it," and "teammates can review and approve each layer independently." [Stacked pull requests](https://docs.github.com/en/pull-requests/reference/stacked-pull-requests)

Two documented rules matter here. CODEOWNERS is "Evaluated from the stack base," so each layer requests the owners of the files it changes, as if it targeted `main`. And to merge a layer, "All pull requests below it in the stack also meet those requirements." [Stacked pull requests: merge requirements](https://docs.github.com/en/pull-requests/reference/stacked-pull-requests#merge-requirements) Rebases are cheaper too: "Rebasing a stack doesn't count as a new, reviewable commit if the diff does not change. Approvals are retained in this situation, even when the **Dismiss stale pull request approvals when new commits are pushed** rule is enabled."

Put the package rename and the compatibility shim at the bottom and one service per layer above it. Required checks run on every layer, so each layer still has to build on its own, and the shim is still needed. What the stack adds is one landing for the whole change and approvals that survive rebases. It costs the same number of reviews as a split, and stacks require all branches in the same repository, so a contributor working from a fork cannot use them.

## Option 3: approve centrally

The tempting shortcut is a central team on every line. Terraform's CODEOWNERS pairs its core team with specialist teams, as in `/internal/backend/remote-state/s3 @hashicorp/terraform-core @hashicorp/terraform-aws`. [hashicorp/terraform CODEOWNERS](https://github.com/hashicorp/terraform/blob/main/CODEOWNERS), read on 2026-11-23. Because "an approval from _any_ of the owners is sufficient," [CODEOWNERS and branch protection](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners#codeowners-and-branch-protection) a core approval satisfies those paths. That suits a project that wants its core team able to land changes anywhere, every day. As a fix for one rename, it is a permanent change made for a temporary problem: from then on, every change to every service can merge without its team. [Multiple owners on one line](/learn/codeowners-any-owner-approves/) covers what that line means.

The narrower form of central approval is an exception for this one pull request. A ruleset's bypass list can name actors who may merge without meeting its rules, and stacked pull requests "support merging with **bypass rules**, but only the bottom pull request can be merged this way." [Stacked pull requests: merge requirements](https://docs.github.com/en/pull-requests/reference/stacked-pull-requests#merge-requirements) If you go this way, review the codemod itself rather than its output, run it again on the final base so the diff is exactly what the tool produces, and record who bypassed and why. [Keeping the bypass list narrow](/learn/ruleset-bypass-list/) covers how to set it up.

## What none of the options catch

Owner approvals of an import change confirm that each team saw its slice. They do not show that the rename preserves behavior; CI and tests do that, or nobody does. A per-team review also cannot see interactions between slices, such as two services that rely on a log field the new package names differently.

## Keep the noise down while you wait

Requesting a large team "can notify every team member." GitHub suggests auto assignment, or **Only notify requested team members** with a specific member requested. [Requesting a pull request review](https://docs.github.com/en/pull-requests/how-tos/create-pull-requests/requesting-a-pull-request-review) With auto assignment on and code owner review required, "the team request cannot be removed and so the individual request will appear in addition to the team." [Managing code review settings for your team](https://docs.github.com/en/organizations/organizing-members-into-teams/managing-code-review-settings-for-your-team#about-auto-assignment)

## Choose by what the owners would add

If any team might reasonably object to how its code changes, split or stack, and stack when you want the change to land at once. If the change is purely mechanical, owner review adds little; review the tool, merge through a recorded bypass, and leave the CODEOWNERS file as it was.

## One month of free code review.

New organizations get one calendar month of hosted code review for private and public GitHub repositories. No card or cloud connection required. [Eligibility and fair-use terms](/free-code-review/).

[Start free with GitHub](https://proofline.sh/orgs/plan?offer=free_month)

## Related reading

-   ### [Does every owner on a CODEOWNERS line have to approve?](/learn/codeowners-any-owner-approves/)
    
    Code review The Proofline team November 23, 2026 4 min read
    
-   ### [Who should be on a ruleset's bypass list?](/learn/ruleset-bypass-list/)
    
    Code review The Proofline team November 23, 2026 5 min read
