Skip to content

version release: fix finalize isLatest check - #511

Merged
gmarzot merged 1 commit into
mainfrom
fix/release-finalize-islatest
Jul 29, 2026
Merged

version release: fix finalize isLatest check#511
gmarzot merged 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

@gmarzot gmarzot self-assigned this Jul 24, 2026
@gmarzot
gmarzot requested review from afrind and michalhosna July 24, 2026 13:45
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 force-pushed the fix/release-finalize-islatest branch from acc6f7a to 1fc617c Compare July 29, 2026 15:46

@afrind afrind left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

image.png

@afrind reviewed 1 file and all commit messages, and made 1 comment.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on michalhosna).

@gmarzot
gmarzot merged commit 55dfd7f into main Jul 29, 2026
16 checks passed
@gmarzot
gmarzot deleted the fix/release-finalize-islatest branch July 29, 2026 22:12
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

2 participants