Skip to content

Windows release sync leaves superseded version PRs open #10727

Closed

Description

@tianmind-studio

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:

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:

  1. List open PRs targeting main whose same-repository head matches the exact release/windows-v* prefix.
  2. Exclude the current release branch/PR.
  3. Close older matching PRs as superseded, with a short comment linking the current sync PR.
  4. Do not delete tags, releases, or branches; cleanup failure remains non-fatal to publishing.
  5. Add a contract regression proving the current PR is retained and unrelated PRs are never selected.
  6. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions