Skip to content

Commit

Permalink
- Experiments.
Browse files Browse the repository at this point in the history
  • Loading branch information
miroslavpojer committed Jun 25, 2024
1 parent 6b5f761 commit c67faf7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/release_notes/model/record.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]:
Expand Down

0 comments on commit c67faf7

Please sign in to comment.