mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
Merge branch 'main' into ts-pack
This commit is contained in:
commit
b2f6018e05
4 changed files with 25 additions and 13 deletions
|
@ -99,7 +99,7 @@ jsonschema==4.23.0
|
||||||
# litellm
|
# litellm
|
||||||
jsonschema-specifications==2024.10.1
|
jsonschema-specifications==2024.10.1
|
||||||
# via jsonschema
|
# via jsonschema
|
||||||
litellm==1.60.6
|
litellm==1.60.8
|
||||||
# via -r requirements/requirements.in
|
# via -r requirements/requirements.in
|
||||||
markdown-it-py==3.0.0
|
markdown-it-py==3.0.0
|
||||||
# via rich
|
# via rich
|
||||||
|
@ -254,5 +254,5 @@ zipp==3.21.0
|
||||||
# via importlib-metadata
|
# via importlib-metadata
|
||||||
|
|
||||||
# The following packages are considered to be unsafe in a requirements file:
|
# The following packages are considered to be unsafe in a requirements file:
|
||||||
pip==25.0
|
pip==25.0.1
|
||||||
# via -r requirements/requirements.in
|
# via -r requirements/requirements.in
|
||||||
|
|
|
@ -92,7 +92,7 @@ mdurl==0.1.2
|
||||||
# -c requirements.txt
|
# -c requirements.txt
|
||||||
# -c requirements/requirements-dev.txt
|
# -c requirements/requirements-dev.txt
|
||||||
# markdown-it-py
|
# markdown-it-py
|
||||||
narwhals==1.25.2
|
narwhals==1.26.0
|
||||||
# via altair
|
# via altair
|
||||||
numpy==1.26.4
|
numpy==1.26.4
|
||||||
# via
|
# via
|
||||||
|
|
|
@ -53,7 +53,7 @@ filelock==3.17.0
|
||||||
# virtualenv
|
# virtualenv
|
||||||
fonttools==4.56.0
|
fonttools==4.56.0
|
||||||
# via matplotlib
|
# via matplotlib
|
||||||
identify==2.6.6
|
identify==2.6.7
|
||||||
# via pre-commit
|
# via pre-commit
|
||||||
idna==3.10
|
idna==3.10
|
||||||
# via
|
# via
|
||||||
|
@ -218,13 +218,13 @@ urllib3==2.3.0
|
||||||
# -c /Users/gauthier/Projects/aider/requirements.txt
|
# -c /Users/gauthier/Projects/aider/requirements.txt
|
||||||
# -c requirements.txt
|
# -c requirements.txt
|
||||||
# requests
|
# requests
|
||||||
virtualenv==20.29.1
|
virtualenv==20.29.2
|
||||||
# via pre-commit
|
# via pre-commit
|
||||||
wheel==0.45.1
|
wheel==0.45.1
|
||||||
# via pip-tools
|
# via pip-tools
|
||||||
|
|
||||||
# The following packages are considered to be unsafe in a requirements file:
|
# The following packages are considered to be unsafe in a requirements file:
|
||||||
pip==25.0
|
pip==25.0.1
|
||||||
# via
|
# via
|
||||||
# -c /Users/gauthier/Projects/aider/requirements.txt
|
# -c /Users/gauthier/Projects/aider/requirements.txt
|
||||||
# -c requirements.txt
|
# -c requirements.txt
|
||||||
|
|
|
@ -126,6 +126,11 @@ def find_oldest_issue(subject, all_issues):
|
||||||
|
|
||||||
|
|
||||||
def comment_and_close_duplicate(issue, oldest_issue):
|
def comment_and_close_duplicate(issue, oldest_issue):
|
||||||
|
# Skip if issue is labeled as priority
|
||||||
|
if "priority" in [label["name"] for label in issue["labels"]]:
|
||||||
|
print(f" - Skipping priority issue #{issue['number']}")
|
||||||
|
return
|
||||||
|
|
||||||
comment_url = (
|
comment_url = (
|
||||||
f"{GITHUB_API_URL}/repos/{REPO_OWNER}/{REPO_NAME}/issues/{issue['number']}/comments"
|
f"{GITHUB_API_URL}/repos/{REPO_OWNER}/{REPO_NAME}/issues/{issue['number']}/comments"
|
||||||
)
|
)
|
||||||
|
@ -168,7 +173,11 @@ def find_unlabeled_with_paul_comments(issues):
|
||||||
|
|
||||||
def handle_unlabeled_issues(all_issues, auto_yes):
|
def handle_unlabeled_issues(all_issues, auto_yes):
|
||||||
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 = [
|
||||||
|
issue
|
||||||
|
for issue in find_unlabeled_with_paul_comments(all_issues)
|
||||||
|
if "priority" not in [label["name"] for label in issue["labels"]]
|
||||||
|
]
|
||||||
|
|
||||||
if not unlabeled_issues:
|
if not unlabeled_issues:
|
||||||
print("No unlabeled issues with paul-gauthier comments found.")
|
print("No unlabeled issues with paul-gauthier comments found.")
|
||||||
|
@ -197,10 +206,12 @@ def handle_stale_issues(all_issues, auto_yes):
|
||||||
|
|
||||||
for issue in all_issues:
|
for issue in all_issues:
|
||||||
# Skip if not open, not a question, already stale, or has been reopened
|
# Skip if not open, not a question, already stale, or has been reopened
|
||||||
|
labels = [label["name"] for label in issue["labels"]]
|
||||||
if (
|
if (
|
||||||
issue["state"] != "open"
|
issue["state"] != "open"
|
||||||
or "question" not in [label["name"] for label in issue["labels"]]
|
or "question" not in labels
|
||||||
or "stale" in [label["name"] for label in issue["labels"]]
|
or "stale" in labels
|
||||||
|
or "priority" in labels
|
||||||
or has_been_reopened(issue["number"])
|
or has_been_reopened(issue["number"])
|
||||||
):
|
):
|
||||||
continue
|
continue
|
||||||
|
@ -239,8 +250,9 @@ def handle_stale_closing(all_issues, auto_yes):
|
||||||
print("\nChecking for issues to close or unstale...")
|
print("\nChecking for issues to close or unstale...")
|
||||||
|
|
||||||
for issue in all_issues:
|
for issue in all_issues:
|
||||||
# Skip if not open or not stale
|
# Skip if not open, not stale, or is priority
|
||||||
if issue["state"] != "open" or "stale" not in [label["name"] for label in issue["labels"]]:
|
labels = [label["name"] for label in issue["labels"]]
|
||||||
|
if issue["state"] != "open" or "stale" not in labels or "priority" in labels:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# Get the timeline to find when the stale label was last added
|
# Get the timeline to find when the stale label was last added
|
||||||
|
@ -324,9 +336,9 @@ def handle_fixed_issues(all_issues, auto_yes):
|
||||||
print("\nChecking for fixed enhancement and bug issues to close...")
|
print("\nChecking for fixed enhancement and bug issues to close...")
|
||||||
|
|
||||||
for issue in all_issues:
|
for issue in all_issues:
|
||||||
# Skip if not open or doesn't have fixed label
|
# Skip if not open, doesn't have fixed label, or is priority
|
||||||
labels = [label["name"] for label in issue["labels"]]
|
labels = [label["name"] for label in issue["labels"]]
|
||||||
if issue["state"] != "open" or "fixed" not in labels:
|
if issue["state"] != "open" or "fixed" not in labels or "priority" in labels:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# Check if it's an enhancement or bug
|
# Check if it's an enhancement or bug
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue