Skip to content
This repository was archived by the owner on Nov 25, 2026. It is now read-only.

fix: open no release candidate for sync merge commits - #21

Merged
t11z merged 1 commit into
mainfrom
fix/empty-candidates
Nov 24, 2026
Merged

t11z merged 1 commit into
mainfrom
fix/empty-candidates

Conversation

@t11z

@t11z t11z commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Closes #17

  • candidate-pr.yml counts unreleased work with the new release_tools.py unreleased-count: non-merge commits in origin/main..origin/next, the same range rc-version and candidate-body already use. The merge commits of sync-main-to-next no longer count.
  • With a zero count the existing path runs: no RC tag, no preview, and an open candidate PR is closed with "Nothing left to release on next."
  • Tests: a temporary repository whose next holds only a sync merge counts 0, and a feat commit plus another sync merge counts 1. A consistency test ties the workflow step to the subcommand and keeps the RC tag gated on the count.

candidate-pr counted every commit in origin/main..origin/next, including the
merge commits sync-main-to-next adds after each push to main. Every fix,
Dependabot update or release on main therefore produced an empty candidate
with an RC tag and a preview build.

Count only non-merge commits (release_tools.py unreleased-count, the same
range rc-version and candidate-body use). With nothing to release, the
existing path pushes no RC tag and closes an open candidate PR.

Closes #17
@t11z
t11z merged commit c89a452 into main Nov 24, 2026
1 check passed
@t11z
t11z deleted the fix/empty-candidates branch November 24, 2026 06:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: candidate-pr opens empty candidates for sync merge commits

1 participant