refactor: push changes and create pull request after each iteration in solve_issue_in_repository
This commit is contained in:
parent
3e3e6591d7
commit
3458826f54
|
@ -457,17 +457,28 @@ def solve_issue_in_repository(
|
||||||
|
|
||||||
# Verify whether this is a satisfactory solution
|
# Verify whether this is a satisfactory solution
|
||||||
if verify_solution(repository_path, issue_content):
|
if verify_solution(repository_path, issue_content):
|
||||||
break
|
# 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
|
||||||
|
resolution = push_changes(
|
||||||
|
repository_config,
|
||||||
|
repository_path,
|
||||||
|
branch_name,
|
||||||
|
issue_number,
|
||||||
|
issue_title,
|
||||||
|
gitea_client,
|
||||||
|
)
|
||||||
|
if not resolution.success:
|
||||||
|
return resolution
|
||||||
|
|
||||||
# Push changes
|
|
||||||
return push_changes(
|
|
||||||
repository_config,
|
|
||||||
repository_path,
|
|
||||||
branch_name,
|
|
||||||
issue_number,
|
|
||||||
issue_title,
|
|
||||||
gitea_client,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
def solve_issues_in_repository(
|
def solve_issues_in_repository(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user