Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add changelog entries on tag commit #439

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ Changelog for zest.releaser
9.1.2 (unreleased)
------------------

- Nothing changed yet.

- Append the changes written in the change log file to the commit message.
This allows integration with GitHub releases.
Fixes issue #218 [gforcada]

9.1.1 (2023-10-11)
------------------
Expand Down
1 change: 1 addition & 0 deletions zest/releaser/baserelease.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
),
"history_last_release": ("Full text of all history entries of the current release"),
"history_lines": "List with all history file lines (when found)",
"history_this_release": "The changes from the release being made",
"name": "Name of the project being released",
"new_version": "New version to write, possibly with development marker",
"nothing_changed_yet": (
Expand Down
1 change: 1 addition & 0 deletions zest/releaser/prerelease.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ def execute(self):
self._write_version()
if self.data["update_history"]:
self._write_history()
self.data["commit_msg"] += self.data["history_this_release"]
self._diff_and_commit()

def _grab_version(self, initial=False):
Expand Down
Loading