Skip to content

Commit

Permalink
feat(action): Skip adding release notes header for providers with no …
Browse files Browse the repository at this point in the history
…release notes
  • Loading branch information
Noahnc committed Dec 9, 2023
1 parent 036ee02 commit b104b91
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions infrapatch/action/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ def get_pr_body(provider_handler: ProviderHandler) -> str:
body += markdown_tables[provider_name].dumps()
body += "\n"
if provider_name in release_notes:
if len(release_notes[provider_name]) == 0:
log.debug(f"No release notes found for provider '{provider_name}'.")
continue
log.debug(f"Adding release notes for provider '{provider_name}' to pull request body.")
body += "## Changelog\n"
for release_note in release_notes[provider_name]:
Expand Down

0 comments on commit b104b91

Please sign in to comment.