diff --git a/aider_gitea/__init__.py b/aider_gitea/__init__.py index 9b6e2c4..8f1b69f 100644 --- a/aider_gitea/__init__.py +++ b/aider_gitea/__init__.py @@ -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,