Skip to content

version release: fix finalize isLatest check#511

Open
gmarzot wants to merge 1 commit into
mainfrom
fix/release-finalize-islatest
Open

version release: fix finalize isLatest check#511
gmarzot wants to merge 1 commit into
mainfrom
fix/release-finalize-islatest

Conversation

@gmarzot

@gmarzot gmarzot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Fixes #510. Port of openmoq/moxygen#331.

isLatest is not a supported --json field on gh release view (only on gh release list), so the finalize job's Confirm release published step always exited 1 after the release was already live — seen on the v0.2.1 run (https://github.com/openmoq/moqx/actions/runs/30053012201), where the release published fine with all 4 assets.

Changes:

  • Keep isPrerelease/name from gh release view; derive latest-ness by comparing $TAG against gh api repos/$REPO/releases/latest. Still no --latest forcing — GitHub's auto-latest algorithm stays authoritative.
  • Tighten the stale finalize header comment (the step confirms; latest-marking is GitHub's auto-latest, not this job).

Tested locally against v0.2.1:

isPrerelease=false name=moqx 0.2.1
isLatest=true (latest=v0.2.1)

YAML validated. v0.2.1 itself needs no re-cut.


This change is Reviewable

gh release view has no isLatest --json field (only gh release list
does), so the Confirm release published step always exited 1 after the
release was already live. Keep isPrerelease/name from release view and
derive isLatest by comparing the tag against the releases/latest API,
still without forcing --latest. Also tighten the stale finalize header
comment. Port of openmoq/moxygen#331.

Fixes #510
@gmarzot gmarzot self-assigned this Jul 24, 2026
@gmarzot
gmarzot requested a review from afrind July 24, 2026 13:45
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.

version release: finalize fails — gh release view has no isLatest JSON field

1 participant