Skip to content

Archive and retire inactive legacy branches - #159

Merged
ByBrawe merged 2 commits into
mainfrom
chore/archive-legacy-branch-cleanup
Sep 21, 2026
Merged

ByBrawe merged 2 commits into
mainfrom
chore/archive-legacy-branch-cleanup

Conversation

@ByBrawe

@ByBrawe ByBrawe commented Sep 21, 2026

Copy link
Copy Markdown
Owner

Second-stage branch hygiene after #158.

All inactive legacy branch tips were first preserved under archive/legacy-branches-2026-09-21 using archive commits that reference each unique tip as a parent. The archive branch also contains archive/legacy-branches-2026-09-21.json mapping every archived branch name to its exact SHA.

This PR extends Branch Hygiene so archived branches are deleted only when:

  • the branch is not default/protected and has no open same-repo PR;
  • its current SHA still exactly matches the archived manifest;
  • GitHub compare proves that SHA is an ancestor of the configured archive ref;
  • the ref is re-read immediately before deletion.

PR runs remain read-only dry-runs. Real deletion happens only after merge on a main push.

The archive ref itself is excluded and retained permanently as the recovery point.

Copilot AI lite review requested due to automatic review settings September 21, 2026 18:53

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@ByBrawe
ByBrawe merged commit 6e0aa74 into main Sep 21, 2026
10 checks passed
@github-actions
github-actions Bot deleted the chore/archive-legacy-branch-cleanup branch September 21, 2026 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants