Compare commits

...

2 Commits

Author SHA1 Message Date
1c326c4f64 fix: skip 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 11:00:03 +02:00
4ddc42fd0b Initial ruff pass 2025-04-24 10:59:35 +02:00
2 changed files with 7 additions and 1 deletions

View File

@ -472,6 +472,10 @@ def solve_issue_in_repository(
if not resolution.success: if not resolution.success:
return resolution return resolution
# Skip evaluation if no evaluator model is specified
if not EVALUATOR_MODEL:
return resolution
# 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):
return resolution 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 a pull request for this head/base already exists, return it instead of crashing
if response.status_code == 409: if response.status_code == 409:
logger.warning( 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) prs = self.get_pull_requests(owner, repo)
for pr in prs: for pr in prs: