Răsfoiți Sursa

Part 3: main is now a protected branch

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude 1 zi în urmă
părinte
comite
0cfb5aa476
1 a modificat fișierele cu 4 adăugiri și 4 ștergeri
  1. 4 4
      content/2026-10-24-vps-part-3-gogs.md

+ 4 - 4
content/2026-10-24-vps-part-3-gogs.md

@@ -123,9 +123,9 @@ branch, so there's nothing for a pull request to target. The rule is
 for a README describing the app. Every change since then has gone through
 a branch and a reviewed merge.
 
-Gogs can also enforce that rule itself, with **protected branches** under
-the repository's Settings → Branches, so only named people can push to
-`main`. Turning that on is the admin's call; the agent follows the written
-rule either way.
+After that, the rule stopped being just a rule. `main` is a **protected
+branch** in Gogs (the repository's Settings → Branches), so the server
+itself refuses direct pushes to it. Changes reach `main` only through a
+merged pull request, no matter who or what is pushing.
 
 [Part 4](/posts/vps-part-4-building-posts) is the first real app: this blog.