Skip to content

Commit

Permalink
Merge pull request #53 from github/empty-reports
Browse files Browse the repository at this point in the history
Skip report if no stale repos exist
  • Loading branch information
zkoppert authored Aug 3, 2023
2 parents 1486c08 + 9fb2beb commit bba93b9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions stale_repos.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,11 @@ def main(): # pragma: no cover
github_connection, inactive_days_threshold, organization
)

output_to_json(inactive_repos)
# Write the list of inactive repos to a csv file
write_to_markdown(inactive_repos, inactive_days_threshold)
if inactive_repos:
output_to_json(inactive_repos)
write_to_markdown(inactive_repos, inactive_days_threshold)
else:
print("No stale repos found")


def get_inactive_repos(github_connection, inactive_days_threshold, organization):
Expand Down

0 comments on commit bba93b9

Please sign in to comment.