Skip to content
This repository has been archived by the owner on Mar 8, 2024. It is now read-only.

Commit

Permalink
Merge pull request #8 from EdgyEdgemond/feature/6
Browse files Browse the repository at this point in the history
Feature/6
  • Loading branch information
EdgyEdgemond authored Jan 17, 2020
2 parents fc39973 + 27d842b commit 30298c6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog_gen/cli/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,3 +117,4 @@ def gen(dry_run=False):
Git.commit(version_info["new"])

# TODO: use bumpversion to tag if configured
BumpVersion.release(semver)
6 changes: 5 additions & 1 deletion changelog_gen/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def get_version_info(cls, semver):
try:
describe_out = (
subprocess.check_output(
["bumpversion", semver, "--dry-run", "--list", "--allow-dirty",],
["bumpversion", semver, "--dry-run", "--list", "--allow-dirty"],
stderr=subprocess.STDOUT,
)
.decode()
Expand All @@ -26,3 +26,7 @@ def get_version_info(cls, semver):
"current": bumpversion_data["current_version"],
"new": bumpversion_data["new_version"],
}

@classmethod
def release(cls, semver):
subprocess.check_output(["bumpversion", semver])
1 change: 1 addition & 0 deletions release_notes/6.feat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bump the version of the library after writing changelog.

0 comments on commit 30298c6

Please sign in to comment.