Skip to content

Commit

Permalink
better format
Browse files Browse the repository at this point in the history
  • Loading branch information
TaylorFries committed Nov 8, 2024
1 parent e379966 commit 68b03df
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/helpers/npm-deps/parse_to_comment.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,13 @@ def create_update_dict(folder, outdated_json):

# define return dictionary and set count
return_li = []
total_updates = len(patch_li) + len(minor_li) + len(major_li)
if total_updates > 0:
header_str = "There are a total of " + str(total_updates) + " for < " + folder + " >\n"
else:
header_str = "Currently there are no updates for < " + folder + " >\n"

return_li.append(header_str)

if S_PATCH in LEVELS and len(patch_li) > 0:
# if we are reporting on patch and there are updates include that section
Expand Down

0 comments on commit 68b03df

Please sign in to comment.