mirror of
https://github.com/TECHNOFAB11/bumpver.git
synced 2025-12-13 06:50:08 +01:00
fix gitlab.com #5: better bump warning for semver
This commit is contained in:
parent
a3d1a559b8
commit
e743359881
3 changed files with 75 additions and 8 deletions
|
|
@ -472,6 +472,9 @@ def write_content(ctx: ProjectContext) -> None:
|
|||
fh: typ.IO[str]
|
||||
|
||||
cfg_content = default_config(ctx)
|
||||
if ctx.config_filepath.exists():
|
||||
cfg_content = "\n" + cfg_content
|
||||
|
||||
with ctx.config_filepath.open(mode="at", encoding="utf-8") as fh:
|
||||
fh.write(cfg_content)
|
||||
print(f"Updated {ctx.config_filepath}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue