refactor: push changes and create PR after every iteration in solve_issue_in_repository
All checks were successful
Run Python tests (through Pytest) / Test (push) Successful in 25s
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-21 12:50:05 +02:00
parent 890dada71c
commit 948ab5a382

View File

@ -455,19 +455,7 @@ def solve_issue_in_repository(
)
return IssueResolution(False)
# Verify whether this is a satisfactory solution
if verify_solution(repository_path, issue_content):
# Push final changes and create pull request
return push_changes(
repository_config,
repository_path,
branch_name,
issue_number,
issue_title,
gitea_client,
)
# Push intermediate changes and create/update the pull request
# Push changes and create/update the pull request on every iteration
resolution = push_changes(
repository_config,
repository_path,
@ -479,6 +467,10 @@ def solve_issue_in_repository(
if not resolution.success:
return resolution
# Verify whether this is a satisfactory solution
if verify_solution(repository_path, issue_content):
return resolution
def solve_issues_in_repository(
repository_config: RepositoryConfig,