Skip to content

release -> ci/cd -> version release#61

Merged
sawradip merged 3 commits into
mainfrom
version/fix
Aug 29, 2025
Merged

release -> ci/cd -> version release#61
sawradip merged 3 commits into
mainfrom
version/fix

Conversation

@sawradip
Copy link
Copy Markdown
Contributor

@sawradip sawradip commented Aug 29, 2025

Summary by CodeRabbit

  • New Features
    • Added a version subcommand and --version flag to the CLI for quick version display with clear output.
  • Bug Fixes
    • Improved release workflow reliability for generating changelogs and tooling installation.
  • Documentation
    • Updated CHANGELOG with latest release notes.
  • Chores
    • Release pipeline now creates GitHub Releases and conditionally publishes to PyPI, including an installation snippet in release notes.
    • Bumped versions across Python, Go, Rust, and TypeScript packages to 0.1.20 for consistency.

RadeenXALNW and others added 3 commits August 27, 2025 10:11
- Updated all SDK versions to 0.1.20
- Generated changelog with git-cliff
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Aug 29, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

Adds PyPI publish steps to the release workflow, updates version metadata to 0.1.20 across projects, simplifies release.sh changelog handling, and enhances the CLI with a --version flag and version subcommand. CHANGELOG updated accordingly.

Changes

Cohort / File(s) Summary
Release workflow + PyPI
.github/workflows/create-release.yml
Renamed workflow; adds conditional Python setup, version/tag verification, build, PyPI existence check, and conditional publish via pypa/gh-action-pypi-publish; release body now includes pip install snippet.
Release tooling script
release.sh
Updates Python bump to also edit runagent/__init__.py; simplifies changelog generation to a single git-cliff call; removes backup/restore and multi-range logic; minor cleanup.
CLI: version flag and command
runagent/cli/main.py, runagent/cli/commands.py
Adds eager --version option with callback to print version; registers new version subcommand; uses colored output; handles ImportError fallback.
Python version files
runagent/__init__.py, runagent/__version__.py
Bumps __version__ to 0.1.20; adds sync handling via release.sh.
Multi-language version bumps
pyproject.toml, runagent-ts/package.json, runagent-go/runagent/version.go, runagent-rust/runagent/Cargo.toml
Increments versions from 0.1.19 to 0.1.20 across Python, TypeScript, Go, and Rust packages; adjusts tool target versions where present.
Changelog update
CHANGELOG.md
Updates headers and entries for 0.1.20; refines bug fix notes; adjusts previous bump mention.

Sequence Diagram(s)

sequenceDiagram
  autonumber
  actor Dev as Developer
  participant GH as GitHub Actions
  participant Py as Python Env
  participant PyPI as PyPI Registry
  participant GHRel as GitHub Release

  Dev->>GH: Push tag vX.Y.Z
  GH->>Py: Setup Python 3.11, install build tools
  GH->>Py: Extract TAG_VERSION and PACKAGE_VERSION
  Py-->>GH: Compare versions (match/mismatch)
  alt versions mismatch
    GH-->>Dev: Fail workflow
  else versions match
    GH->>Py: Build distribution (sdist/wheel)
    GH->>PyPI: Check version existence
    alt version not on PyPI
      GH->>PyPI: Publish artifacts
      PyPI-->>GH: Publish OK
    else version exists
      GH-->>GH: Skip publish
    end
    GH->>GHRel: Create GitHub Release (body includes pip install snippet)
  end
Loading
sequenceDiagram
  autonumber
  actor User as CLI User
  participant CLI as runagent (click)
  participant Ver as Version Module

  User->>CLI: runagent --version
  CLI->>Ver: import __version__
  alt import ok
    CLI-->>User: Print version (styled)
    CLI-->>User: Exit
  else ImportError
    CLI-->>User: Print "version unknown" (styled)
    CLI-->>User: Exit
  end

  User->>CLI: runagent version
  CLI->>Ver: import __version__
  alt import ok
    CLI-->>User: Print version (styled)
  else ImportError
    CLI-->>User: Print "version unknown" (styled)
  end
Loading

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~60 minutes

Possibly related PRs

Poem

A tag hops forth: v0.1.20—hooray!
I thump the ground: to PyPI, away!
With whiskers bright, the CLI will tell,
“What’s my version?” it answers well.
Changelog nibbled, scripts made light,
Releases bloom in moonlit night. 🐇✨

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 Ruff (0.12.2)
runagent/__init__.py

�[1;31mruff failed�[0m
�[1mCause:�[0m Failed to parse /pyproject.toml
�[1mCause:�[0m TOML parse error at line 162, column 18
|
162 | target-version = "0.1.20"
| ^^^^^^^^
unknown variant 0.1.20, expected one of py37, py38, py39, py310, py311, py312, py313, py314

runagent/__version__.py

�[1;31mruff failed�[0m
�[1mCause:�[0m Failed to parse /pyproject.toml
�[1mCause:�[0m TOML parse error at line 162, column 18
|
162 | target-version = "0.1.20"
| ^^^^^^^^
unknown variant 0.1.20, expected one of py37, py38, py39, py310, py311, py312, py313, py314

runagent/cli/commands.py

�[1;31mruff failed�[0m
�[1mCause:�[0m Failed to parse /pyproject.toml
�[1mCause:�[0m TOML parse error at line 162, column 18
|
162 | target-version = "0.1.20"
| ^^^^^^^^
unknown variant 0.1.20, expected one of py37, py38, py39, py310, py311, py312, py313, py314

  • 1 others

Tip

🔌 Remote MCP (Model Context Protocol) integration is now available!

Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats.


📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 5803b58 and 8d818c8.

📒 Files selected for processing (11)
  • .github/workflows/create-release.yml (3 hunks)
  • CHANGELOG.md (1 hunks)
  • pyproject.toml (3 hunks)
  • release.sh (3 hunks)
  • runagent-go/runagent/version.go (1 hunks)
  • runagent-rust/runagent/Cargo.toml (1 hunks)
  • runagent-ts/package.json (1 hunks)
  • runagent/__init__.py (1 hunks)
  • runagent/__version__.py (1 hunks)
  • runagent/cli/commands.py (1 hunks)
  • runagent/cli/main.py (2 hunks)
✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch version/fix

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore or @coderabbit ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@sawradip sawradip merged commit d2bda86 into main Aug 29, 2025
3 of 4 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.

2 participants