Repository navigation
ci(release): choose patch, minor, or major when dispatching a release - #27
Conversation
Add a script that bumps the project version for releases, automating the manual edit so version updates stay consistent. Auto-committed-on: cuttlefish Co-authored-by: Medulla <medulla@tinyhumans.ai>
Add a shell test script that exercises the bump-version release helper, covering version increment behaviour so regressions in the release tooling are caught before publishing. Auto-committed-on: cuttlefish Co-authored-by: Medulla <medulla@tinyhumans.ai>
Mark the version bump script and its test as executable so they can be run directly without invoking a shell interpreter. Auto-committed-on: cuttlefish Co-authored-by: Medulla <medulla@tinyhumans.ai>
The release workflow now takes a patch, minor, or major input, bumps the workspace version, commits and tags it on main, and pushes both atomically so a rejected push leaves nothing behind. Releases always run from main and are serialized to avoid two runs racing for the same tag. Auto-committed-on: cuttlefish Co-authored-by: Medulla <medulla@tinyhumans.ai>
…gging The releasing section now describes how the manual Release workflow takes a patch, minor, or major release type, bumps the workspace version and lockfile, commits and tags on main, and publishes artifacts. It also adds the gh command to dispatch a release and notes the offline bump script and its test. Auto-committed-on: cuttlefish Co-authored-by: Medulla <medulla@tinyhumans.ai>
Tiny Sweeper reviewReviewed head: FindingsNo active actionable findings. Unverified notes — repository context was unavailable; these are not actionable findings Unverified note — critique
Verdict: Ready for maintainer review · Priority: none Diagnostics and supporting detailsFull summaryPull request purpose (title): ci(release): choose patch, minor, or major when dispatching a release. Tiny Sweeper completed its review; deterministic results follow. Review snapshot
Completeness: Complete What changed`Release` gains a required `release_type` dispatch input (patch/minor/major, default patch) and a single `release` concurrency group. The prepare job now checks out `main`, configures a bot git identity, runs the new offline bump-script test, bumps the `[workspace.package]` version and the `medulla`/`medulla-link`/`medulla-tui` lockfile entries, refuses an existing tag, then commits `chore(release): vX.Y.Z` and pushes the commit and annotated tag atomically. Build and publish jobs are unchanged in behavior and build from the tag. `DEVELOPING.md` describes the new dispatch and the two scripts. Features
Tests
Before mergeNone. Agent review detailscritique
security
tests
commits
description
Evidence and run details
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Caution Review failedThe pull request is closed. Walkthrough
Merge Risk:
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3a9414b478
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
The
Releaseworkflow could only tag whatever versionCargo.tomlalready held, so oncev0.14.1was out every dispatch failed withRelease tag v0.14.1 already exists(run 40736339443). The bump step was lost in the docs/source split.This restores a proper one-click release, modelled on OpenHuman's
release_typedispatch:workflow_dispatchinputrelease_type:patch(default) /minor/major.scripts/release/bump-version.shbumps[workspace.package].versionand themedulla,medulla-link,medulla-tuientries inCargo.lock, re-reads both to verify, and emitsversion/tagoutputs. It doesn't commit or push.scripts/release/test-bump-version.shtests it offline (patch/minor/major, rejects bad input, rejects a lockfile missing a workspace package without half-editingCargo.toml). The prepare job runs it before bumping.main, refuses an existing tag, commitschore(release): vX.Y.Z, and pushes the commit and annotated tag withgit push --atomic, so a rejected push leaves neither behind. Build and publish are unchanged and build from the tag.releaseconcurrency group, so two dispatches can't race for one tag.DEVELOPING.mddocuments how to release.mainhas no branch protection or rulesets, soGITHUB_TOKEN(withcontents: write) can push the bump commit. No App token is needed.Validation:
bash scripts/release/test-bump-version.sh: all 5 cases passbash scripts/release/bump-version.sh minoron the real tree gives 0.14.1 → 0.15.0, andcargo metadata --lockedstill passes (reverted afterwards)Summary by CodeRabbit
main, and publishes an annotated tag with packaged artifacts.