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
Owner

What and why

Closes #429

main blocks an outdated branch and requires Lint, Build and Molecule, so every branch update re-runs all three and a new head cancels the run in progress; an update made while another pull request merges first is wasted. This adds two rules to docs/contributing/making-a-change.md:

  • Update a branch from main only when its pull request is next to merge (reviewed, green on its previous head, one at a time); after updating your own pull request, give it a scheduled merge, and merge anyone else's as reviewing.md says.
  • Never press the update button on a renovate/ branch, because a hand-made commit makes Renovate stop rebasing it; when a Renovate pull request is next to merge and behind main, tick the rebase/retry checkbox in its description instead.

The update-button sentence of the no-push rule now defers to these two rules. The branch protection and its rationale in SECURITY.md are unchanged.

Verified

  • pre-commit run --files docs/contributing/making-a-change.md and the commit hooks: passed (reuse-lint run with reuse 6.3.0 from requirements-dev.txt).
  • ansible-test sanity (pre-push hook): passed.
  • The checkbox wording matches an open Renovate pull request on this repository ("If you want to rebase/retry this PR, check this box").
  • No script test reads this file (grep -rln making-a-change tests/scripts: no match).
  • Two review rounds by a separate agent against the contributor docs, GLOSSARY.md, SECURITY.md and the workflows' cancel-in-progress settings.

Not verified

  • Whether Renovate rebases an automerge branch just for falling behind main; the rule does not rely on it.
  • That ticking the checkbox rebases the branch at Renovate's next run (taken from Renovate's pull request text, not observed).
  • Rendering of the new link in Gitea's web view.
  • Molecule (runs in CI only).

  • I confirm third-party material is recorded in NOTICE and REUSE.toml, or there is none.

Assisted-by: Claude Code

## What and why Closes #429 `main` blocks an outdated branch and requires Lint, Build and Molecule, so every branch update re-runs all three and a new head cancels the run in progress; an update made while another pull request merges first is wasted. This adds two rules to docs/contributing/making-a-change.md: - Update a branch from `main` only when its pull request is next to merge (reviewed, green on its previous head, one at a time); after updating your own pull request, give it a scheduled merge, and merge anyone else's as reviewing.md says. - Never press the update button on a `renovate/` branch, because a hand-made commit makes Renovate stop rebasing it; when a Renovate pull request is next to merge and behind `main`, tick the rebase/retry checkbox in its description instead. The update-button sentence of the no-push rule now defers to these two rules. The branch protection and its rationale in SECURITY.md are unchanged. ## Verified - `pre-commit run --files docs/contributing/making-a-change.md` and the commit hooks: passed (reuse-lint run with reuse 6.3.0 from requirements-dev.txt). - `ansible-test sanity` (pre-push hook): passed. - The checkbox wording matches an open Renovate pull request on this repository ("If you want to rebase/retry this PR, check this box"). - No script test reads this file (`grep -rln making-a-change tests/scripts`: no match). - Two review rounds by a separate agent against the contributor docs, GLOSSARY.md, SECURITY.md and the workflows' `cancel-in-progress` settings. ## Not verified - Whether Renovate rebases an automerge branch just for falling behind `main`; the rule does not rely on it. - That ticking the checkbox rebases the branch at Renovate's next run (taken from Renovate's pull request text, not observed). - Rendering of the new link in Gitea's web view. - Molecule (runs in CI only). --- - [x] I confirm third-party material is recorded in `NOTICE` and `REUSE.toml`, or there is none. Assisted-by: Claude Code
Claude added 2 commits 2026-11-27 13:57:23 +00:00
main blocks an outdated branch, so every update re-runs Lint, Build
and Molecule and cancels the run in progress. Limit updates to the
pull request that is next to merge, schedule its merge afterwards,
and leave renovate/ branches to Renovate's own rebase.

Assisted-by: Claude Code:claude-opus-5-5
docs: bring a renovate/ branch up to date through its rebase checkbox
Build / build (pull_request) Successful in 1m19s
Lint / lint (pull_request) Successful in 3m38s
Molecule / molecule (pull_request) Successful in 2m37s
699179674f
A Renovate pull request is not always rebased just for falling
behind main, so forbidding every update would leave it stuck. Never
use the update button on it; tick the rebase/retry checkbox instead,
and say why a hand-made update commit is excluded.

Assisted-by: Claude Code:claude-opus-5-5
CODEOWNERS rules requested review from Defame1297 2026-11-27 13:57:23 +00:00
Defame1297 approved these changes 2026-11-27 13:57:59 +00:00
Dismissed
Defame1297 added 1 commit 2026-11-27 14:09:04 +00:00
Merge branch 'main' into docs/branch-update-rule
Build / build (pull_request) Successful in 34s
Molecule / molecule (pull_request) Successful in 7s
Lint / lint (pull_request) Successful in 1m29s
e4eb3bc656
Defame1297 scheduled this pull request to auto merge when all checks succeed 2026-11-27 14:09:10 +00:00
Defame1297 approved these changes 2026-11-27 14:09:15 +00:00
Dismissed
Defame1297 canceled auto merging this pull request when all checks succeed 2026-11-27 14:10:31 +00:00
Defame1297 added 1 commit 2026-11-27 16:03:04 +00:00
Merge branch 'main' into docs/branch-update-rule
Build / build (pull_request) Successful in 29s
Molecule / molecule (pull_request) Successful in 7s
Lint / lint (pull_request) Successful in 1m33s
c33da78633
Defame1297 scheduled this pull request to auto merge when all checks succeed 2026-11-27 16:03:13 +00:00
Defame1297 approved these changes 2026-11-27 16:03:16 +00:00
Defame1297 merged commit 114a21fc0f into main 2026-11-27 16:04:45 +00:00
Defame1297 deleted branch docs/branch-update-rule 2026-11-27 16:04:47 +00:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mortis/Kamino#436