Skip to content

Commit

Permalink
- Fix review comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
miroslavpojer committed Dec 9, 2024
1 parent 181c8ca commit 379c61a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions release_notes_generator/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def generate(self) -> Optional[str]:
return None

# get the latest release
rls = self.get_latest_release(repo)
rls: GitRelease = self.get_latest_release(repo)

# default is repository creation date if no releases OR created_at of latest release
since = rls.created_at if rls else repo.created_at
Expand Down Expand Up @@ -138,7 +138,7 @@ def get_latest_release(self, repo: Repository) -> Optional[GitRelease]:
# check if from-tag name is defined
if ActionInputs.is_from_tag_name_defined():
logger.info("Getting latest release by from-tag name %s", ActionInputs.get_tag_name())
rls = self._safe_call(repo.get_release)(ActionInputs.get_from_tag_name())
rls: GitRelease = self._safe_call(repo.get_release)(ActionInputs.get_from_tag_name())

if rls is None:
logger.info("Latest release not found for received tag %s. Ending!", ActionInputs.get_from_tag_name())
Expand Down

0 comments on commit 379c61a

Please sign in to comment.