Skip to content

Commit

Permalink
feat: commit format is git-trailer-like
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomas Peterka committed Feb 16, 2024
1 parent 5f66294 commit ec25576
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gira/formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def print(self, upgrade: Upgrade, tickets: Iterable[Ticket]):
chars = 0
sep = " "
self._stream.write("\n")
chars += self._stream.write(str(upgrade))
chars += self._stream.write(f"Dep-Change: {upgrade}")
for ticket in tickets:
if chars > 72:
chars += self._stream.write(sep.strip())
Expand All @@ -56,9 +56,9 @@ def print(self, upgrade: Upgrade, tickets: Iterable[Ticket]):
if ticket is None:
continue
if not ticket.summary:
self._stream.write(f"{ticket.name}: {ticket.url}\n")
self._stream.write(f" {ticket.name}: {ticket.url}\n")
else:
self._stream.write(f"{ticket.name}: {ticket.summary} ({ticket.url})\n")
self._stream.write(f" {ticket.name}: {ticket.summary} ({ticket.url})\n")


class MarkdownFormatter(Formatter):
Expand Down

0 comments on commit ec25576

Please sign in to comment.