From 861d1d6ad72800c4ce407089ebe1406d0083f017 Mon Sep 17 00:00:00 2001 From: Brett Cannon <54418+brettcannon@users.noreply.github.com> Date: Sun, 5 Apr 2020 13:44:57 -0700 Subject: [PATCH] Return the created changelog entry (#23) --- release_often/__main__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/release_often/__main__.py b/release_often/__main__.py index 1cf1ea4..bad3a12 100644 --- a/release_often/__main__.py +++ b/release_often/__main__.py @@ -55,6 +55,7 @@ def update_changelog(path, new_version): new_entry = changelog.entry(path.suffix, new_version, gidgethub.actions.event()) current_changelog = path.read_text(encoding="utf-8") path.write_text(new_entry + current_changelog, encoding="utf-8") + return new_entry def build():