This commit is contained in:
Jon Michael Aanes 2025-05-11 10:43:31 +02:00
parent 32cdcde883
commit 56c70f6322
2 changed files with 7 additions and 2 deletions

View File

@ -177,7 +177,8 @@ def create_aider_command(issue: str) -> list[str]:
'--auto-test', '--auto-test',
'--no-auto-lint', '--no-auto-lint',
'--yes', '--yes',
'--timeout', str(10_000), '--timeout',
str(10_000),
] ]
if CODE_MODEL in {'ollama/qwen3:32b'}: if CODE_MODEL in {'ollama/qwen3:32b'}:
@ -636,5 +637,7 @@ def handle_failing_pipelines(
check=False, check=False,
) )
run_cmd( run_cmd(
['git', 'push', 'origin', branch_name], repository_path, check=False, ['git', 'push', 'origin', branch_name],
repository_path,
check=False,
) )

View File

@ -84,6 +84,7 @@ The tool uses environment variables for sensitive information:
PACKAGE_DESCRIPTION_SHORT = """ PACKAGE_DESCRIPTION_SHORT = """
A code automation tool that integrates Gitea with Aider to automatically solve issues.""".strip() A code automation tool that integrates Gitea with Aider to automatically solve issues.""".strip()
def parse_version_file(text: str) -> str: def parse_version_file(text: str) -> str:
match = re.match(r'^__version__\s*=\s*(["\'])([\d\.]+)\1$', text) match = re.match(r'^__version__\s*=\s*(["\'])([\d\.]+)\1$', text)
if match is None: if match is None:
@ -91,6 +92,7 @@ def parse_version_file(text: str) -> str:
raise Exception(msg) raise Exception(msg)
return match.group(2) return match.group(2)
with open(PACKAGE_NAME + '/_version.py') as f: with open(PACKAGE_NAME + '/_version.py') as f:
version = parse_version_file(f.read()) version = parse_version_file(f.read())