Design a Pull Request Approval Routing System for a Monorepo

Asked at LinkedIn · System Design for ML · Difficulty: Hard · Last asked Nov 10, 2026

Design the mechanism that decides which people and teams must approve a pull request before it can merge. Ownership is declared per path (a file or a directory pattern maps to one or more owners), and the system must work for one very large monorepo with a very high commit rate and also for a fleet of many repositories of very different sizes.

Loading the problem…