mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 12:24:59 +00:00
feat: List open issues in descending order by number
This commit is contained in:
parent
851f0653d6
commit
31655889cf
1 changed files with 4 additions and 3 deletions
|
@ -106,10 +106,11 @@ def main():
|
|||
|
||||
print(f"\nIssue: {subject}")
|
||||
print(f"Open issues: {len(issues)}")
|
||||
for issue in issues:
|
||||
print(f" - {issue['html_url']}")
|
||||
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['html_url']} (created on {oldest_issue['created_at']})")
|
||||
print(f"Oldest issue: #{oldest_issue['number']}: {oldest_issue['html_url']} (created on {oldest_issue['created_at']})")
|
||||
|
||||
# Confirmation prompt
|
||||
confirm = input("Do you want to comment and close duplicate issues? (y/n): ")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue