Skip to content

fix: publish 0.x releases as prereleases - #315

Merged
uniqueg merged 4 commits into
devfrom
fix/313-prerelease-0x
Nov 16, 2026
Merged

uniqueg merged 4 commits into
devfrom
fix/313-prerelease-0x

Conversation

@uniqueg

@uniqueg uniqueg commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

Summary

Publishes every v0.* release as a prerelease, never as the latest release, as releases stay prereleases until 1.0 (v0.3.0 had to be flagged by hand after publishing).

  • .github/workflows/release.yml:
    • prepare gets a new output mark_prerelease: true for alpha, beta and rc tags and for every v0.* tag.
    • The GitHub release (gh release create and edit) follows it.
    • latest is false whenever it is true.
    • The existing prerelease output keeps meaning a SemVer pre-release tag, which only chooses the previous release for the generated notes, as before.
    • A release that is already published (e.g., by hand) is still left as it is, but a prerelease flag that differs from the expected one is now reported as a warning.
  • docs/development.md ("Releases") says so.

Closes #313

Verification

Lane

Full lane (release workflow):

  • Round 1: adversarial-reviewer and quality-reviewer. No high findings. The quality reviewer's two medium findings were about comments and docs; both are fixed.
  • Round 2: adversarial-reviewer on the fixes, which changed logic slightly (redundant check dropped, new warning). No findings.

Declined review findings

  • The latest flag of a release published by hand isn't checked, only its prerelease flag (low). GitHub never makes a prerelease the latest, so this can only matter for releases from 1.0 on.

Open questions

None.

The "Latest" badge stays on tesk-0.1.1 (a release from before the chart) until 1.0, since no 0.x release can become latest. Marking tesk-0.1.0, tesk-0.1.1 and v0.2 as prereleases by hand would remove that stale badge. That is a maintainer decision outside this PR.

🤖 Generated with Claude Code

Summary by Sourcery

Ensure pre-1.0 and SemVer prerelease releases are published as prereleases and excluded from the latest release.

Bug Fixes:

  • Publish all pre-1.0 releases as GitHub prereleases so they cannot be marked as the latest release.

Enhancements:

  • Distinguish SemVer prerelease tags used for release-note selection from the GitHub prerelease status.
  • Warn when an already-published release has a prerelease flag that differs from the expected value.

Documentation:

  • Document that alpha, beta, release-candidate, and all 0.x releases remain prereleases until 1.0.

uniqueg and others added 3 commits November 16, 2026 21:18
The release workflow marked only alpha, beta and rc tags as
prereleases, so 0.x releases came out as normal releases and became
the latest release (v0.3.0 was flagged by hand afterwards). The new
output mark_prerelease is true for pre-release tags and for every
v0.* tag; the GitHub release follows it, and a release marked as a
prerelease is never made the latest. The output prerelease keeps
meaning a SemVer pre-release, which picks the previous release for
the generated notes as before.

Closes #313

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Explain both flags in one place, rewrap the header, drop the redundant
PRERELEASE check from the latest condition (mark_prerelease covers it)
and split the paragraph in docs/development.md (review findings).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A release that is already published (e.g., by hand) is left as it is;
the step now warns if its prerelease flag differs from the expected
one, so that a maintainer can fix it (review finding).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@uniqueg uniqueg self-assigned this Nov 16, 2026
@sourcery-ai

sourcery-ai Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Reviewer's Guide

Configuration

Separate SemVer prerelease detection from GitHub release classification so all v0.* releases are prereleases and cannot become latest, while warning when an already-published release has the wrong prerelease flag.

  • .github/workflows/release.yml L104-109, L250-255, L366-370 (+8 small edits)

Documentation

Document that prerelease tags and all releases before 1.0 are published as prereleases and cannot become the latest release.

  • docs/development.md L172-176

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

uniqueg added a commit that referenced this pull request Nov 16, 2026
The 0.4.0 notes gain the service info's backend parameters (#289,
#314) and the prerelease flag of releases before 1.0 (#313, #315),
both planned for 0.4.0.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@codecov

codecov Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (cd0c106) to head (5eedf2b).

Additional details and impacted files
@@            Coverage Diff            @@
##               dev      #315   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            2         2           
  Lines          422       422           
=========================================
  Hits           422       422           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@uniqueg
uniqueg marked this pull request as ready for review November 16, 2026 21:20
@sourcery-ai

sourcery-ai Bot commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

Linked issues

Checked at commit 5eedf2b

#313 fix: publish 0.x releases as prereleases · 3 of 4 met · 1 to check by hand

# Requirement Status Notes
1 Publish every v0.x.y tag and every alpha, beta and rc tag as a prerelease ✅ Met The workflow sets mark_prerelease for tags with major version 0 or a SemVer prerelease suffix, and uses it when creating and editing the release.
2 Never mark a prerelease as the latest release ✅ Met The latest-release calculation leaves latest false whenever mark_prerelease is true.
3 Document this in docs/development.md under Releases ✅ Met The Releases section says that prerelease tags and all v0.* releases are published as prereleases and never become latest.
4 Test in a fork with a test tag 👀 Check by hand (external system) The PR reports a successful fork dry run with v0.0.2; confirm the linked Actions run and resulting release in the fork.

@sourcery-ai sourcery-ai Bot 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.

Hey - I've reviewed your changes and they look great!

Sourcery assessment

Needs a human reviewer. A 0.x release will be published with GitHub's prerelease flag and won't be marked latest, which can affect how users and release tooling discover it. If that policy is wrong, the published release's flags can be corrected manually; reverting the workflow alone would not change releases already published.


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

@uniqueg
uniqueg merged commit 584f017 into dev Nov 16, 2026
39 checks passed
@uniqueg
uniqueg deleted the fix/313-prerelease-0x branch November 16, 2026 21:25
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.

fix: publish 0.x releases as prereleases

1 participant