Create pull request and push after every iteration #88

Merged
Jmaa merged 4 commits from issue-87-create-pull-request-and-push-after-every-iteration into main 2025-04-21 12:20:03 +00:00
Showing only changes of commit 948ab5a382 - Show all commits

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,