mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 12:24:59 +00:00
docs: add refactoring comments for issue handling functions
This commit is contained in:
parent
ddfd1276c5
commit
e8c153f72f
1 changed files with 5 additions and 0 deletions
|
@ -149,6 +149,7 @@ def main():
|
||||||
all_issues = get_issues("all")
|
all_issues = get_issues("all")
|
||||||
|
|
||||||
if args.find_unlabeled:
|
if args.find_unlabeled:
|
||||||
|
#ai refactor this into a function...
|
||||||
print("\nFinding unlabeled issues with paul-gauthier comments...")
|
print("\nFinding unlabeled issues with paul-gauthier comments...")
|
||||||
unlabeled_issues = find_unlabeled_with_paul_comments(all_issues)
|
unlabeled_issues = find_unlabeled_with_paul_comments(all_issues)
|
||||||
|
|
||||||
|
@ -173,6 +174,9 @@ def main():
|
||||||
response.raise_for_status()
|
response.raise_for_status()
|
||||||
print(f" - Added 'question' label to #{issue['number']}")
|
print(f" - Added 'question' label to #{issue['number']}")
|
||||||
return
|
return
|
||||||
|
# ... to here
|
||||||
|
|
||||||
|
# ai also refactor this into its own function...
|
||||||
open_issues = [issue for issue in all_issues if issue["state"] == "open"]
|
open_issues = [issue for issue in all_issues if issue["state"] == "open"]
|
||||||
grouped_open_issues = group_issues_by_subject(open_issues)
|
grouped_open_issues = group_issues_by_subject(open_issues)
|
||||||
|
|
||||||
|
@ -212,6 +216,7 @@ def main():
|
||||||
|
|
||||||
if oldest_issue["state"] == "open":
|
if oldest_issue["state"] == "open":
|
||||||
print(f"Oldest issue #{oldest_issue['number']} left open")
|
print(f"Oldest issue #{oldest_issue['number']} left open")
|
||||||
|
# ai ... to here!
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue