refactor: handle PR comments only after marking issues as seen
All checks were successful
Run Python tests (through Pytest) / Test (push) Successful in 26s
Verify Python project can be installed, loaded and have version checked / Test (push) Successful in 22s

This commit is contained in:
Jon Michael Aanes (aider) 2025-04-23 22:25:47 +02:00
parent f9a13896f9
commit 5595c0bbca

View File

@ -517,16 +517,6 @@ def solve_issues_in_repository(
)
if issue_resolution.success:
# Handle unresolved pull request comments
handle_pr_comments(
repository_config,
issue_resolution.pull_request_id,
branch_name,
Path(repository_path),
client,
seen_issues_db,
issue_url,
)
seen_issues_db.mark_as_seen(issue_url, str(issue_number))
seen_issues_db.update_pr_info(
issue_url,
@ -538,6 +528,16 @@ def solve_issues_in_repository(
issue_resolution.pull_request_id,
issue_number,
)
# Handle unresolved pull request comments
handle_pr_comments(
repository_config,
issue_resolution.pull_request_id,
branch_name,
Path(repository_path),
client,
seen_issues_db,
issue_url,
)
def handle_pr_comments(