From e8c153f72f54cc5ac91bdbb8f45208c58be64dec Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Tue, 5 Nov 2024 07:02:22 -0800 Subject: [PATCH] docs: add refactoring comments for issue handling functions --- scripts/issues.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/issues.py b/scripts/issues.py index a02fd235e..8677ce367 100755 --- a/scripts/issues.py +++ b/scripts/issues.py @@ -149,6 +149,7 @@ def main(): all_issues = get_issues("all") if args.find_unlabeled: + #ai refactor this into a function... print("\nFinding unlabeled issues with paul-gauthier comments...") unlabeled_issues = find_unlabeled_with_paul_comments(all_issues) @@ -173,6 +174,9 @@ def main(): response.raise_for_status() print(f" - Added 'question' label to #{issue['number']}") return + # ... to here + + # ai also refactor this into its own function... open_issues = [issue for issue in all_issues if issue["state"] == "open"] grouped_open_issues = group_issues_by_subject(open_issues) @@ -212,6 +216,7 @@ def main(): if oldest_issue["state"] == "open": print(f"Oldest issue #{oldest_issue['number']} left open") + # ai ... to here! if __name__ == "__main__":