Skip to content

Commit

Permalink
Fix: in changelog packager must contain email address (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
frozenIceage authored Oct 30, 2024
1 parent 9db7c76 commit 1e9db08
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions auto_release_obs.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,10 @@ def modify_changes_file(self) -> None:
response = self.osc.packages.get_file(self.project, self.package,
f"{self.package}.changes")
response.encoding = 'utf-8'
content = f"- Release {self.release_name}\n"
for line in self.release_body.split("\r\n"):
content += f" {line}\n"
lines = [f" {line}" for line in self.release_body.strip().split("\r\n") if line]
content = f"- Release {self.release_name}\n" + "\n".join(lines)
entry = Entry(
packager=self.username,
packager=f"{self.username} <[email protected]>",
content=content,
timestamp=datetime.now(tz=_UTC())
)
Expand Down

0 comments on commit 1e9db08

Please sign in to comment.