From c67faf782ee5162d9515ce074437a6a209327041 Mon Sep 17 00:00:00 2001 From: miroslavpojer Date: Tue, 25 Jun 2024 17:35:57 +0200 Subject: [PATCH] - Experiments. --- src/release_notes/model/record.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/release_notes/model/record.py b/src/release_notes/model/record.py index 9d62ea8c..344cff8d 100644 --- a/src/release_notes/model/record.py +++ b/src/release_notes/model/record.py @@ -105,11 +105,16 @@ def does_pr_mention_issue(self) -> bool: @property def authors(self) -> Optional[str]: + authors: list[str] = [] + for pull in self.__pulls: if pull.author is not None: - return pull.author + authors.append(f"@{pull.author}") - return None + if len(authors) > 0: + return None + + return ", ".join(authors) @property def contributors(self) -> Optional[str]: