diff --git a/docs/contributing/making-a-change.md b/docs/contributing/making-a-change.md index 3772e0d..4849e4b 100644 --- a/docs/contributing/making-a-change.md +++ b/docs/contributing/making-a-change.md @@ -15,10 +15,19 @@ 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 + rule. *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. Never update a + `renovate/` branch: Renovate rebases its branches that fall behind `main` at its next run.** + *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. - **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.