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,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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user