Parcourir la source

Part 3: main is now a protected branch

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude il y a 1 jour
Parent
commit
0cfb5aa476
1 fichiers modifiés avec 4 ajouts et 4 suppressions
  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.