Lightweight coding agent that runs in your terminal
Rust
fix(scripts) next_minor_version should reset patch number (#7050)
Dylan Hurd0e051644a922
diff --git a/codex-rs/scripts/create_github_release b/codex-rs/scripts/create_github_releaseindex 47d6d3ce8c..e7b8972db5 100755--- a/codex-rs/scripts/create_github_release+++ b/codex-rs/scripts/create_github_release@@ -298,8 +298,12 @@ def create_tag_ref(version: str, tag_sha: str) -> None:def determine_version(args: argparse.Namespace) -> str:latest_version = get_latest_release_version()- major, minor, patch = parse_semver(latest_version)- next_minor_version = format_version(major, minor + 1, patch)+ # When determining the next version after the current release,+ # we should always increment the minor version, but reset the+ # patch to zero. In practice, `patch` should only be non-zero if+ # --emergency-version-override was used.+ major, minor, _patch = parse_semver(latest_version)+ next_minor_version = format_version(major, minor + 1, 0)if args.publish_release:return next_minor_version