docs: update a branch from main only when it is next to merge #436

Merged
Defame1297 merged 4 commits from docs/branch-update-rule into main 2026-11-27 16:04:45 +00:00
+14 -1
View File
@@ -15,10 +15,23 @@ trailers, are in [ai-assistance.md](ai-assistance.md).
*Reason:* every change reaches `main` through the Lint and Build checks and a reviewer.
*Held by:* control: branch protection on `main`.
- **Do not push to someone else's branch or to a bot's branch; put your change in a pull request of
your own.** Updating a branch from `main` with Gitea's update button is allowed.
your own.** Updating a branch from `main` with Gitea's update button is allowed under the next
two rules.
*Reason:* a push changes a head its author already reviewed or scheduled to merge, and a hand-made
commit on a `renovate/` branch makes Renovate stop rebasing it.
*Held by:* aspirational.
- **Update a pull request's branch from `main` only when it is next to merge: reviewed, green on its
previous head, and the only branch being updated. After updating your own pull request, give it a
scheduled merge; merge anyone else's as [reviewing.md](reviewing.md) says.**
*Reason:* `main` blocks an outdated branch, so every update re-runs Lint, Build and Molecule, and
a new head cancels the run in progress; an update made while another pull request merges first is
wasted.
*Held by:* aspirational.
- **Never press the update button on a `renovate/` branch. When a Renovate pull request is next to
merge and behind `main`, tick the rebase/retry checkbox in its description; Renovate rebases it at
its next run.**
*Reason:* the update button adds a hand-made commit, and Renovate stops rebasing that branch.
*Held by:* aspirational.
- **File an issue or open a pull request with the headings of the matching template in `.gitea/`,
also when you file through the API, `tea` or an MCP server.**
*Reason:* those routes skip the templates, and an agent's built-in body leaves out what review needs.