Skip to content

fix: pass make_latest to finalizeRelease#706

Closed
EronWright wants to merge 1 commit into
softprops:masterfrom
EronWright:fix-make-latest-finalize
Closed

fix: pass make_latest to finalizeRelease#706
EronWright wants to merge 1 commit into
softprops:masterfrom
EronWright:fix-make-latest-finalize

Conversation

@EronWright

Copy link
Copy Markdown

Summary

PR #692 introduced draft-first release creation, but finalizeRelease does not pass make_latest when updating the release from draft to published. This causes releases to be marked as "latest" despite make_latest: false being set.

Problem

When make_latest is omitted from the updateRelease call in finalizeRelease, GitHub's API defaults to determining "latest" based on semver comparison, ignoring the original make_latest setting.

Fix

Pass make_latest through the finalizeRelease call chain:

  1. Update Releaser interface to accept make_latest parameter
  2. Update GitHubReleaser.finalizeRelease to pass make_latest to the API
  3. Update exported finalizeRelease function to pass config.input_make_latest

Fixes #703

PR softprops#692 introduced draft-first release creation, but finalizeRelease
does not pass make_latest when updating the release from draft to
published. This causes releases to be marked as "latest" despite
make_latest: false being set.

When make_latest is omitted from the updateRelease call, GitHub's API
defaults to determining "latest" based on semver comparison, ignoring
the original make_latest setting.

Fixes softprops#703
@chenrui333

Copy link
Copy Markdown
Collaborator

@EronWright can you show me how you tested the commit? Thanks!

cc @dumbmoron

@EronWright

EronWright commented Dec 6, 2025

Copy link
Copy Markdown
Author

Sorry, I'm not able to work on this. Do feel free to close this PR if the fix is not correct.

@dumbmoron

Copy link
Copy Markdown
Contributor

I can definitely reproduce the bug, but for some reason I am still getting the newly made release set to latest even with make_latest: false: https://github.com/schlizzawg/test/actions/runs/19993405639. The code looks good to me, so not sure what could be going wrong.

@EronWright

Copy link
Copy Markdown
Author

@dumbmoron sorry that I don't have any other insights. I'll close this PR now.

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.

Release marked as 'latest' despite make_latest: false in v2.5.0

3 participants