Skip to content

fix(ci): place --no-raise before bump subcommand in bumpversion.yml#1954

Open
bearomorphism wants to merge 1 commit intocommitizen-tools:masterfrom
bearomorphism:fix/bumpversion-no-raise-placement
Open

fix(ci): place --no-raise before bump subcommand in bumpversion.yml#1954
bearomorphism wants to merge 1 commit intocommitizen-tools:masterfrom
bearomorphism:fix/bumpversion-no-raise-placement

Conversation

@bearomorphism
Copy link
Copy Markdown
Collaborator

Description

Fixes the bump workflow that has been failing on master since #1950 was merged.

The bump step uses:

cz bump --yes --no-raise 21

but --no-raise is a top-level commitizen option, so it must come before the bump subcommand. With it placed after, argparse treats --no-raise 21 as unknown trailing arguments and the CLI exits with code 18 (INVALID_COMMAND_ARGUMENT):

Invalid commitizen arguments were found: --no-raise. Please use -- separator for extra git args

This is what failed run 25542335831.

Fix

Move --no-raise 21 before bump:

cz --no-raise 21 bump --yes

Verified locally:

$ cz bump --yes --dry-run --no-raise 21
Invalid commitizen arguments were found: `--no-raise`. Please use -- separator for extra git args
$ echo $?
18

$ cz --no-raise 21 bump --yes --dry-run
bump: version 4.15.1 → 4.16.0
tag to create: v4.16.0
increment detected: MINOR
$ echo $?
0

Checklist

Was generative AI tooling used to co-author this PR?

  • Yes (please specify the tool below)

Generated-by: GitHub Copilot

@codecov
Copy link
Copy Markdown

codecov Bot commented May 9, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.23%. Comparing base (4b93a50) to head (a66f766).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1954   +/-   ##
=======================================
  Coverage   98.23%   98.23%           
=======================================
  Files          61       61           
  Lines        2779     2779           
=======================================
  Hits         2730     2730           
  Misses         49       49           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

The bump-version step in bumpversion.yml passed --no-raise 21 after the
`bump` subcommand, but `--no-raise` is a top-level commitizen option.
With it placed after the subcommand, argparse treats `--no-raise 21` as
unknown trailing arguments and the CLI exits with code 18
(`INVALID_COMMAND_ARGUMENT`):

    Invalid commitizen arguments were found: `--no-raise`.
    Please use -- separator for extra git args

This is what failed the bump workflow on master in run 25542335831.

Move the option before `bump` so it is parsed by the parent parser, as
intended by 5513e01 (`ci(bump): gracefully handle no bump-eligible
commits`).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@bearomorphism bearomorphism force-pushed the fix/bumpversion-no-raise-placement branch from 5f2d2bc to a66f766 Compare May 9, 2026 06:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant