Skip to content

Commit 7d69b79

Browse files
committed
fix: get correct Git commit message from bumpversion
1 parent 2b75175 commit 7d69b79

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

clit/dev.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,12 +197,13 @@ def full(ctx, part, allow_dirty: bool):
197197
exit(bump.returncode)
198198

199199
chosen_lines = shell(
200-
f'{bump_dry_run_cmd} 2>&1 | rg -e "would.+bump" -e "new version" | rg -o "\'(.+)\'"', return_lines=True
200+
f'{bump_dry_run_cmd} 2>&1 | rg -e "would commit to git.+bump" -e "new version" | rg -o "\'(.+)\'"',
201+
return_lines=True,
201202
)
202203
new_version = chosen_lines[0].strip("'")
203204
commit_message = chosen_lines[1].strip("'")
204205
click.echo(f"New version: {new_version}\nCommit message: {commit_message}")
205-
prompt("Were all versions correctly bumped?")
206+
prompt("Were all versions correctly displayed?")
206207

207208
shell(PyPICommands.BUMP_VERSION.format(allow_dirty=allow_dirty_option, part=part))
208209
shell(f"{PyPICommands.CHANGELOG} -s")

0 commit comments

Comments
 (0)