Skip to content

Commit

Permalink
style: Improve formatting and readability of issues.py script
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-gauthier committed Sep 20, 2024
1 parent 3165588 commit 0030d11
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,14 @@ def main():

print(f"\nIssue: {subject}")
print(f"Open issues: {len(issues)}")
sorted_issues = sorted(issues, key=lambda x: x['number'], reverse=True)
sorted_issues = sorted(issues, key=lambda x: x["number"], reverse=True)
for issue in sorted_issues:
print(f" - #{issue['number']}: {issue['html_url']}")

print(f"Oldest issue: #{oldest_issue['number']}: {oldest_issue['html_url']} (created on {oldest_issue['created_at']})")
print(
f"Oldest issue: #{oldest_issue['number']}: {oldest_issue['html_url']} (created on"
f" {oldest_issue['created_at']})"
)

# Confirmation prompt
confirm = input("Do you want to comment and close duplicate issues? (y/n): ")
Expand Down

0 comments on commit 0030d11

Please sign in to comment.