Skip to content

Commit

Permalink
fix: Make sure commit is max 71 characters
Browse files Browse the repository at this point in the history
  • Loading branch information
katomaso committed Dec 6, 2024
1 parent f9acf00 commit c3e4c7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gira/formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def _s(s: Optional[str]) -> Optional[str]: # shorten
chars += self._stream.write(f"({_s(upgrade.old_version)} -> {_s(upgrade.new_version)})")

for ticket in tickets:
if chars + len(ticket.name) > 70:
if chars + len(ticket.name) >= 70:
chars += self._stream.write(sep.strip())
chars = self._stream.write("\n ") - 1
sep = "" # no separator after newline
Expand Down

0 comments on commit c3e4c7e

Please sign in to comment.