From 9a8dd52070cd8efe0cbf003eaf81979b47830df0 Mon Sep 17 00:00:00 2001 From: Thomas Willson Date: Mon, 11 Dec 2023 10:41:06 -0800 Subject: [PATCH] Get entire commit message instead of just subject. +semver:minor --- staflversion/git.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/staflversion/git.py b/staflversion/git.py index d6661c9..6c17c08 100644 --- a/staflversion/git.py +++ b/staflversion/git.py @@ -46,11 +46,12 @@ def get_commit_messages_since_tag(self) -> List[str]: .raise_on_error() .stdout.strip() ) - return ( - self._run("log", f"{last_tag}..HEAD", "--format=%s") + messages = ( + self._run("log", f"{last_tag}..HEAD", "--format=----------------%n%s%n%b") .raise_on_error() - .stdout.splitlines() + .stdout.split("----------------\n") ) + return [message.strip() for message in messages if message.strip() != ""] def _run(self, *args: str) -> GitRunResult: git_args = ["git"]