Skip to content

feat: pass --config through release to bump command#159

Merged
HarryCampion merged 3 commits intomainfrom
copilot/fix-release-with-bump-config
Mar 24, 2026
Merged

feat: pass --config through release to bump command#159
HarryCampion merged 3 commits intomainfrom
copilot/fix-release-with-bump-config

Conversation

Copy link
Contributor

Copilot AI commented Mar 24, 2026

release --with-bump (and --bump) would fail if the bumpversion config file wasn't at the default .rhiza/.cfg.toml path — the --config option accepted by bump had no equivalent on release and was never forwarded internally.

Changes

  • cli.py — Added --config / -c option to the release command, reusing the shared CONFIG_OPTION already defined for bump; passes it through to release_command()
  • release.py — Added config: Path | None = None to release_command() and _perform_version_bump(); forwards the path into BumpOptions when bump_command is called internally
  • Tests — Updated existing mock-call assertions to include the new config arg; added a test case verifying --config is forwarded correctly to release_command

Usage

# Config file at a non-default path
rhiza-tools release --with-bump --config /custom/path/.cfg.toml
rhiza-tools release --bump MINOR --push --config /custom/path/.cfg.toml
Original prompt

This section details on the original issue you should resolve

<issue_title>release --with-bump should allow config file path to be passed to the bump command</issue_title>
<issue_description>### Description

release --with-bump all fail if .cfg.toml Is not in .rhiza

Steps to reproduce

move .cfg.toml and rhiza-tools release --with-bump --config ..

Expected behaviour

you should be able to passthrough the same options via release

Environment

No response

Additional context

No response</issue_description>

Comments on the Issue (you are @copilot in this section)


📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.

Copilot AI changed the title [WIP] Fix release --with-bump to allow config file path feat: pass --config through release to bump command Mar 24, 2026
Copilot AI requested a review from HarryCampion March 24, 2026 16:43
@HarryCampion HarryCampion marked this pull request as ready for review March 24, 2026 16:47
@HarryCampion HarryCampion merged commit 1b287f0 into main Mar 24, 2026
18 checks passed
@HarryCampion HarryCampion deleted the copilot/fix-release-with-bump-config branch March 24, 2026 16:47
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.

release --with-bump should allow config file path to be passed to the bump command

2 participants