Skip to content

[Release] Mark minor releases as "latest" on GitHub#4167

Merged
Wauplin merged 3 commits intomainfrom
cursor/release-latest-label-4b8d
Apr 29, 2026
Merged

[Release] Mark minor releases as "latest" on GitHub#4167
Wauplin merged 3 commits intomainfrom
cursor/release-latest-label-4b8d

Conversation

@Wauplin
Copy link
Copy Markdown
Contributor

@Wauplin Wauplin commented Apr 29, 2026

Summary

When publishing a GitHub release, minor releases should be labelled as "latest release" — patch releases should not take over that label, so that the latest minor version stays highlighted on the repo's releases page.

Changes in .github/workflows/release.yml:

  • Minor release — promote draft (gh release edit): added --latest so that promoting the prerelease draft to a final release explicitly marks it as "latest".
  • Updated the top-of-file comment to document this behavior.

Slack Thread

Open in Web Open in Cursor 

Comment thread .github/workflows/release.yml Outdated
Comment thread .github/workflows/release.yml Outdated
Copy link
Copy Markdown
Contributor Author

@Wauplin Wauplin left a comment

Choose a reason for hiding this comment

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

✔️

@Wauplin Wauplin marked this pull request as ready for review April 29, 2026 09:48
@Wauplin Wauplin requested a review from hanouticelina April 29, 2026 09:48
@Wauplin Wauplin changed the title [Release] Mark only minor releases as "latest" on GitHub [Release] Mark minor releases as "latest" on GitHub Apr 29, 2026
@Wauplin Wauplin merged commit 1b2bce2 into main Apr 29, 2026
21 checks passed
@Wauplin Wauplin deleted the cursor/release-latest-label-4b8d branch April 29, 2026 09:49
@bot-ci-comment
Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 9da63d1. Configure here.

--tag "$TAG" \
--prerelease=false
--prerelease=false \
--latest
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

--latest on draft release causes API validation error

High Severity

The gh release edit command adds --latest but does not include --draft=false. The release being edited was created as --draft --prerelease (in the minor-prerelease step). Setting --prerelease=false alone leaves it as a draft. The GitHub API rejects make_latest: true on draft releases with a validation error ("Latest release cannot be draft or prerelease"), so this command will fail — preventing the tag update, prerelease flag change, and the entire "Promote draft release to final version" step from succeeding.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 9da63d1. Configure here.

@huggingface-hub-bot
Copy link
Copy Markdown
Contributor

This PR has been shipped as part of the v1.13.0 release.

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.

2 participants