Skip to content

feat: improve release draft versioning logic in release-draft.yml#9

Merged
koxudaxi merged 1 commit into
mainfrom
fix/release-draft-version
Mar 17, 2026
Merged

feat: improve release draft versioning logic in release-draft.yml#9
koxudaxi merged 1 commit into
mainfrom
fix/release-draft-version

Conversation

@koxudaxi

@koxudaxi koxudaxi commented Mar 17, 2026

Copy link
Copy Markdown
Owner

Summary by CodeRabbit

  • Chores
    • Improved release version management with enhanced version tracking to ensure accurate release numbering.

@coderabbitai

coderabbitai Bot commented Mar 17, 2026

Copy link
Copy Markdown
ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Free

Run ID: ee7eac84-b206-4a3c-ae4c-fe097826f4bc

📥 Commits

Reviewing files that changed from the base of the PR and between 8256ef9 and 48fce51.

📒 Files selected for processing (1)
  • .github/workflows/release-draft.yml

Walkthrough

The release workflow now reads the project version from pyproject.toml and replaces shell-based version computation with Python logic. The updated approach parses tags, validates versions, handles breaking changes, and ensures consistency between computed and project versions.

Changes

Cohort / File(s) Summary
Version Computation Refactoring
.github/workflows/release-draft.yml
Migrated version computation from shell script to Python. Added project version extraction from pyproject.toml. Revised NEXT_VERSION calculation to parse tags, apply fallback logic for invalid versions, prioritize draft tags, handle breaking changes (minor bump + patch reset), and enforce minimum version floor via project version comparison.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Poem

🐰 A version dance, from shell to snake,
Python logic now takes the stage!
From pyproject.toml we extract the truth,
Tags and breaking changes—handled with proof,
Release notes now rise with careful grace! 🎉

📝 Coding Plan
  • Generate coding plan for human review comments

Note

🎁 Summarized by CodeRabbit Free

The PR author is not assigned a seat. To perform a comprehensive line-by-line review, please assign a seat to the pull request author through the subscription management page by visiting https://app.coderabbit.ai/login.

Comment @coderabbitai help to get the list of available commands and usage tips.

@koxudaxi
koxudaxi merged commit 9ced609 into main Mar 17, 2026
6 checks passed
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.

1 participant