fix gitlab.com #5: better bump warning for semver

This commit is contained in:
Manuel Barkhau 2019-07-09 10:07:26 +02:00
parent a3d1a559b8
commit e743359881
3 changed files with 75 additions and 8 deletions

View file

@ -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}")