mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 12:24:59 +00:00
style: Lint and clean up code formatting in issues.py script
This commit is contained in:
parent
5295abbb83
commit
5f40aaabb5
1 changed files with 3 additions and 7 deletions
|
@ -22,11 +22,9 @@ def has_been_reopened(issue_number):
|
||||||
# Load environment variables from .env file
|
# Load environment variables from .env file
|
||||||
load_dotenv()
|
load_dotenv()
|
||||||
|
|
||||||
BOT_SUFFIX = (
|
BOT_SUFFIX = """
|
||||||
"""
|
|
||||||
Note: A [bot script](https://github.com/Aider-AI/aider/blob/main/scripts/issues.py) made these updates to the issue.
|
Note: A [bot script](https://github.com/Aider-AI/aider/blob/main/scripts/issues.py) made these updates to the issue.
|
||||||
""" # noqa
|
""" # noqa
|
||||||
)
|
|
||||||
|
|
||||||
DUPLICATE_COMMENT = (
|
DUPLICATE_COMMENT = (
|
||||||
"""Thanks for trying aider and filing this issue.
|
"""Thanks for trying aider and filing this issue.
|
||||||
|
@ -294,9 +292,7 @@ def handle_stale_closing(all_issues, auto_yes):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# Add closing comment
|
# Add closing comment
|
||||||
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"
|
|
||||||
)
|
|
||||||
response = requests.post(
|
response = requests.post(
|
||||||
comment_url, headers=headers, json={"body": CLOSE_STALE_COMMENT}
|
comment_url, headers=headers, json={"body": CLOSE_STALE_COMMENT}
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue