mirror of
https://github.com/TECHNOFAB11/bumpver.git
synced 2025-12-12 14:30:09 +01:00
more vcs integration
This commit is contained in:
parent
fc937ddf8d
commit
181da8c930
3 changed files with 24 additions and 9 deletions
|
|
@ -240,4 +240,11 @@ def bump(
|
|||
if dry or not cfg.commit:
|
||||
return
|
||||
|
||||
# TODO (mb 2018-09-04): add files and commit
|
||||
for filepath in filepaths:
|
||||
_vcs.add(filepath)
|
||||
|
||||
_vcs.commit(f"bump version to {new_version}")
|
||||
|
||||
if cfg.tag:
|
||||
_vcs.tag(new_version)
|
||||
_vcs.push()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue