refactor: push changes and create pull request after each iteration in solve_issue_in_repository

This commit is contained in:
Jon Michael Aanes (aider) 2025-04-21 12:43:03 +02:00
parent 3e3e6591d7
commit 3458826f54

View File

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