mirror of
https://github.com/supabase/supabase.git
synced 2026-12-04 15:39:13 +00:00
## Problem The self-hosted docs have an owner on the self-hosted team, but `.github/CODEOWNERS` gives all of `/apps/docs/` to `@supabase/docs` alone. A change to a self-hosted page doesn't request a review from the people who own that content. [#53996](https://github.com/supabase/supabase/pull/53996) merged that way, and [#54013](https://github.com/supabase/supabase/pull/54013) followed up on it. Closes [DOCS-1805](https://linear.app/supabase/issue/DOCS-1805/request-a-self-hosted-review-on-each-self-hosted-docs-pr) ## Solution The self-hosted docs pages are owned by `@supabase/docs` and `@supabase/self-hosted`, the team that already owns `/docker/`. Two patterns cover them: - `apps/docs/content/guides/self-hosting*`: the `self-hosting/` folder and `self-hosting.mdx` - `apps/docs/content/guides/**/*self-hosted*`: any guide whose file name contains `self-hosted`, such as `grafana-self-hosted.mdx` and `expose-self-hosted-queues.mdx`, in `.mdx` or `.md` The last matching line in CODEOWNERS wins, so the new lines sit after `/apps/docs/` and keep `@supabase/docs` as an owner. A PR that changes one of these pages requests a review from both teams. ## Review instructions 1. Check that GitHub reports no CODEOWNERS errors: `gh api "repos/supabase/supabase/codeowners/errors?ref=alexisa/DOCS-1805"` returns `"errors": []`. 2. Check which files the two patterns match. They follow `.gitignore` rules, so `git check-ignore` can list the matches: ```bash printf '/apps/docs/content/guides/self-hosting*\n/apps/docs/content/guides/**/*self-hosted*\n' > /tmp/co.ign git ls-files apps/docs | git -c core.excludesFile=/tmp/co.ign check-ignore --no-index --stdin ``` The list has 25 files: the `self-hosting/` pages, `self-hosting.mdx`, and the guides with `self-hosted` in the name. 3. After merge, open a PR that changes a self-hosted page, and check that GitHub requests a review from `@supabase/self-hosted`. ## Checklist - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [ ] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide). Doesn't apply: this PR changes only CODEOWNERS.