Repository navigation
Description
Problem
The Windows release workflow creates a fresh release/windows-v<version> branch and sync PR for every release. If branch protection prevents the best-effort gh pr merge calls from succeeding, later releases never revisit or retire that PR.
There are currently at least nine open version-sync PRs:
- chore(windows): sync release v1.0.3 to main [skip ci] #10419 — v1.0.3
- chore(windows): sync release v1.0.11 to main [skip ci] #10513 — v1.0.11
- chore(windows): sync release v1.0.14 to main [skip ci] #10525 — v1.0.14
- chore(windows): sync release v1.0.15 to main [skip ci] #10533 — v1.0.15
- chore(windows): sync release v1.0.21 to main [skip ci] #10653 — v1.0.21
- chore(windows): sync release v1.0.22 to main [skip ci] #10684 — v1.0.22
- chore(windows): sync release v1.0.24 to main [skip ci] #10716 — v1.0.24
- chore(windows): sync release v1.0.25 to main [skip ci] #10718 — v1.0.25
- chore(windows): sync release v1.0.26 to main [skip ci] #10723 — v1.0.26
The release tag is already authoritative, so each newer sync PR supersedes the older open ones. The accumulated PRs add review noise and several have collected dependency/workflow review gates despite only stamping desktop/windows/package.json.
Root cause
.github/workflows/desktop_windows_release.yml searches only for a PR whose head exactly matches the current versioned branch. After opening that PR it attempts admin/auto/normal merge once. A failed merge is deliberately non-fatal, but no later run closes older release/windows-v* PRs.
Proposed behavior
After the current release's sync PR has been created successfully:
- List open PRs targeting
mainwhose same-repository head matches the exactrelease/windows-v*prefix. - Exclude the current release branch/PR.
- Close older matching PRs as superseded, with a short comment linking the current sync PR.
- Do not delete tags, releases, or branches; cleanup failure remains non-fatal to publishing.
- Add a contract regression proving the current PR is retained and unrelated PRs are never selected.
- Document that only the newest unmerged version-sync PR should remain open.
This preserves the existing safety boundary: publishing and tags remain authoritative, while PR cleanup is best-effort and happens only after a replacement PR exists.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsIn review
Activity
feat(ci): retire superseded Windows release sync PRs (BasedHardware#1…
feat(ci): retire superseded Windows release sync PRs (BasedHardware#1…
fix(ci): retire superseded Windows release sync PRs (#10727) (#10960)