Skip to content

Commit

Permalink
- Improved unit tests for release notes builder to prepare full_name …
Browse files Browse the repository at this point in the history
…for mock repository.
  • Loading branch information
miroslavpojer committed Jun 27, 2024
1 parent e10094a commit 8cca110
Show file tree
Hide file tree
Showing 3 changed files with 169 additions and 274 deletions.
4 changes: 1 addition & 3 deletions src/release_notes/model/record.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,11 +213,9 @@ def pr_links(self) -> Optional[str]:
if len(self.__pulls) == 0:
return None

gh_manager = GithubManager()

template = "[#{number}](https://github.com/{full_name}/pull/{number})"
res = [
template.format(number=pull.number, full_name=gh_manager.get_repository_full_name())
template.format(number=pull.number, full_name=GithubManager().get_repository_full_name())
for pull in self.__pulls
]

Expand Down
Loading

0 comments on commit 8cca110

Please sign in to comment.