This commit is contained in:
Jon Michael Aanes 2025-04-13 18:06:27 +02:00
parent f12e750194
commit 8c75a10b3a

View File

@ -49,9 +49,6 @@ AIDER_LINT=bash_cmd(
)
#MODEL = 'o3-mini'
#MODEL = 'claude-3-7-sonnet'
LLM_MESSAGE_FORMAT = """
{issue}
@ -67,12 +64,11 @@ For code tasks:
def create_aider_command(issue: str) -> list[str]:
return [
'aider',
#'--model', MODEL,
'--chat-language', 'english',
'--test-cmd', AIDER_TEST,
'--lint-cmd', AIDER_LINT,
'--auto-test',
'--no-auto-lint',
'--auto-lint',
'--api-key', secrets.llm_api_key(),
'--read', 'CONVENTIONS.md',
'--message', LLM_MESSAGE_FORMAT.format(issue=issue),
@ -175,7 +171,7 @@ def process_issue(args, tmpdirname: Path, branch_name: str, issue_title: str, is
run_cmd(["git", "checkout", "-b", branch_name], tmpdirname)
run_cmd(create_aider_command(f'# {issue_title}\n{issue_description}'), tmpdirname)
run_cmd(["git", "add", "."], tmpdirname)
# Check if there are any commits on the branch before pushing
if has_commits_on_branch(tmpdirname, args.base_branch, branch_name):
push_changes(tmpdirname, branch_name, issue_number, issue_title, issue_description, args.base_branch)