ci: require maintainer review for gate files through CODEOWNERS

Add the root CODEOWNERS with one owner, the maintainer, over the gate files:
workflows, scripts, images, lint and REUSE configs, sanity ignores, the
changelog config, galaxy.yml, the contributor and agent docs and the apm
setup. It owns itself, and Gitea reads the root path first.

Gitea drops one backslash before compiling a pattern, so literal dots are
written \\. and reach the engine as \.

The pin files and README.md stay unowned. CODEOWNERS joins galaxy.yml
build_ignore, so the tarball check does not refuse it, and the molecule
selector's IGNORED, since no scenario reads it.

Refs #144

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
This commit is contained in:
Defame1297andClaude Opus 5.5 committed 2026-11-21 17:29:29 +00:00
1 parent 00e4e9d945
commit 3c6fd325fb
3 files changed
+37

No files matched your search

+35
View File
@@ -0,0 +1,35 @@
# 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.
# 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.
CODEOWNERS @Defame1297
\\.gitea/.* @Defame1297
scripts/.* @Defame1297
images/.* @Defame1297
tests/scripts/.* @Defame1297
tests/sanity/ignore-.*\\.txt @Defame1297
renovate\\.json @Defame1297
\\.pre-commit-config\\.yaml @Defame1297
\\.ansible-lint(-ignore)? @Defame1297
\\.yamllint @Defame1297
ruff\\.toml @Defame1297
REUSE\\.toml @Defame1297
changelogs/config\\.yaml @Defame1297
galaxy\\.yml @Defame1297
docs/adr/.* @Defame1297
docs/contributing/.* @Defame1297
docs/agents/.* @Defame1297
CONTRIBUTING\\.md @Defame1297
SECURITY\\.md @Defame1297
GLOSSARY\\.md @Defame1297
(.*/)?AGENTS\\.md @Defame1297
\\.claude/.* @Defame1297
apm\\.yml @Defame1297
apm\\.lock\\.yaml @Defame1297
\\.mcp\\.json @Defame1297
+1
View File
@@ -44,6 +44,7 @@ build_ignore:
- .ansible-lint
- .ansible-lint-ignore
- CLAUDE.md
- CODEOWNERS
- CONTRIBUTING.md
- GLOSSARY.md
- SECURITY.md
+1
View File
@@ -63,6 +63,7 @@ IGNORED = (
"SECURITY.md",
"GLOSSARY.md",
"CLAUDE.md",
"CODEOWNERS",
"CHANGELOG.rst",
"COPYING",
"NOTICE",