Compare commits

...

2 Commits

Author SHA1 Message Date
3e80e527d3 fix: skip solution evaluation if no evaluator model is specified
All checks were successful
Run Python tests (through Pytest) / Test (push) Successful in 25s
Verify Python project can be installed, loaded and have version checked / Test (push) Successful in 22s
2025-04-24 00:33:37 +02:00
3e47dd79e6 Initial ruff pass
All checks were successful
Run Python tests (through Pytest) / Test (push) Successful in 24s
Verify Python project can be installed, loaded and have version checked / Test (push) Successful in 22s
2025-04-24 00:31:23 +02:00
2 changed files with 5 additions and 3 deletions

View File

@ -472,8 +472,8 @@ 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):
# Skip evaluation if no evaluator model specified, otherwise verify solution
if not EVALUATOR_MODEL or verify_solution(repository_path, issue_content):
return resolution

View File

@ -169,7 +169,9 @@ class GiteaClient:
# If a pull request for this head/base already exists, return it instead of crashing
if response.status_code == 409:
logger.warning(
'Pull request already exists for head %s and base %s', head, base,
'Pull request already exists for head %s and base %s',
head,
base,
)
prs = self.get_pull_requests(owner, repo)
for pr in prs: