From 844c152d6ad3555856819357ee594c977427f994 Mon Sep 17 00:00:00 2001 From: Defame1297 Date: Sat, 21 Nov 2026 17:32:01 +0000 Subject: [PATCH] ci: say in CODEOWNERS when its approval is enforced The file only requests the maintainer's review; branch protection makes the approval required. Also say why some patterns match nothing yet, and that everything else is unowned. Refs #144 Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG --- CODEOWNERS | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/CODEOWNERS b/CODEOWNERS index e91b740..10c025a 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -1,12 +1,14 @@ -# Gate files: a change to any of them waits for the maintainer's approval. -# Gitea reads this root file before docs/ and .gitea/, so no other CODEOWNERS shadows it. +# Gate files: once branch protection requires code-owner approval, a change to any of +# them waits for the maintainer's. Gitea reads this root file before docs/ and .gitea/, so no other CODEOWNERS shadows it. # Patterns are regular expressions anchored at both ends, not globs. Gitea drops one # backslash before compiling, so a literal dot is written \\. (a bare \. would match any # character). Gitea skips a line that does not compile and never reports a pattern that # matches nothing. # One owner on purpose: every matching rule needs its own owner's approval. -# Not owned on purpose: requirements-dev.txt, requirements-dev.lock and requirements.yml, -# so Renovate's pin bumps keep automerging behind the bot-diff gate; README.md; roles. +# Some patterns name paths that do not exist yet, so the file is in place before they do. +# Everything else is unowned, so role changes merge on green checks. requirements-dev.txt, +# requirements-dev.lock and requirements.yml stay unowned on purpose, so Renovate's pin +# bumps keep automerging behind the bot-diff gate. CODEOWNERS @Defame1297 \\.gitea/.* @Defame1297