Skip to content

Commit

Permalink
Get entire commit message instead of just subject.
Browse files Browse the repository at this point in the history
+semver:minor
  • Loading branch information
willson556 committed Dec 11, 2023
1 parent 1d00d85 commit 9a8dd52
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions staflversion/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 9a8dd52

Please sign in to comment.