Skip to content

CODEOWNERS: say what this file actually does today - #39

Merged
monthop-gmail merged 1 commit into
mainfrom
docs/codeowners-reality
Aug 21, 2026
Merged

CODEOWNERS: say what this file actually does today#39
monthop-gmail merged 1 commit into
mainfrom
docs/codeowners-reality

Conversation

@monthop-gmail

Copy link
Copy Markdown
Owner

หมายเหตุใน CODEOWNERS บอกข้อมูลที่ไม่จริงแล้ว และชี้ทางที่จะทำให้ repo merge ไม่ได้เลย

ที่ผิด

# ตอนนี้ยังไม่เปิด — ไฟล์นี้จึงทำหน้าที่ auto-request reviewer เท่านั้น

branch protection เปิดแล้วตั้งแต่ 2026-08-22 — required status check + enforce_admins · ไฟล์นี้เลยกำลังบอกคนอ่านคนถัดไปผิดเรื่องสถานะของ repo ที่เขายืนอยู่

ที่อันตรายกว่า

หมายเหตุเดิมชี้ว่าทางทำให้ CODEOWNERS มีผลจริงคือเปิด "Require review from Code Owners"

ทำแล้วจะไม่ได้ gate ที่เข้มขึ้น แต่จะปิด repo — GitHub ไม่ให้ใครอนุมัติ PR ของตัวเอง และ repo นี้มี collaborator คนเดียว → merge ไม่ได้เลยสักอัน

เป็นคำแนะนำที่ใครอ่านแล้วทำตามครั้งเดียวก็เจอ จึงเขียนไว้ตรง ๆ ดีกว่าปล่อยไว้

ที่ไฟล์นี้ทำอยู่จริง — ไม่มีอะไรเลย และวัดได้

PR #29 requested_reviewers=0  author=monthop-gmail
PR #30 requested_reviewers=0  author=monthop-gmail

GitHub ไม่ request review จากคนที่เปิด PR เอง · เก็บไว้เพราะราคาเป็นศูนย์ และจะเริ่มทำงานเมื่อมี maintainer คนที่สองหรือมีคนนอก fork มาเปิด PR — ตอนนั้นเปิด required code-owner review ได้โดยไม่ล็อกตัวเอง

🤖 Generated with Claude Code

The note said branch protection was not enabled yet. It is, since 2026-08-22 —
the drift check is a required status check with enforce_admins, which is what
makes ADR-0006 requirement 3 hold rather than merely be written down.

It also pointed at "Require review from Code Owners" as the way to make this real.
With one collaborator that would not tighten the gate, it would close the repo:
GitHub does not let anyone approve their own pull request, so every merge would
block. Worth stating plainly rather than leaving as advice someone follows once.

The file starts earning its place when a second maintainer exists or an outside
fork opens a PR. Kept until then because it costs nothing and /contracts/ and
/decisions/ already declare who owns them.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@monthop-gmail
monthop-gmail merged commit 960afc7 into main Aug 21, 2026
1 check passed
@monthop-gmail
monthop-gmail deleted the docs/codeowners-reality branch August 21, 2026 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant