|
@@ -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
|
|
for a README describing the app. Every change since then has gone through
|
|
|
a branch and a reviewed merge.
|
|
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.
|
|
[Part 4](/posts/vps-part-4-building-posts) is the first real app: this blog.
|