Compare commits

..

No commits in common. "3f71159ecf02cd111295fba01e88b14c59eef53c" and "1d4cec29ed811ed1a1213efd5ee176458748b749" have entirely different histories.

View File

@ -30,23 +30,8 @@ def generate_branch_name(issue_number: str, issue_title: str) -> str:
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
def bash_cmd(*commands: str) -> str: AIDER_TEST="pytest test"
return "bash -c \""+';'.join(cmd)+"\"" AIDER_LINT="ruff format; ruff check --fix --ignore RUF022 --ignore PGH004; ruff format; ruff check --ignore RUF022 --ignore PGH004;"
AIDER_TEST=bash_cmd(
"virtualenv venv",
"source venv/bin/activate",
"pip install -e .",
"pytest test",
)
AIDER_LINT=bash_cmd(
"ruff format",
"ruff check --fix --ignore RUF022 --ignore PGH004",
"ruff format",
"ruff check --ignore RUF022 --ignore PGH004",
)
MODEL = 'o3-mini' MODEL = 'o3-mini'
@ -139,7 +124,6 @@ def run_cmd(cmd: list[str], cwd:Path|None=None) -> None:
def process_issue(args, tmpdirname: Path, branch_name: str, issue_title: str, issue_description: str, issue_number: str): def process_issue(args, tmpdirname: Path, branch_name: str, issue_title: str, issue_description: str, issue_number: str):
repo_url = f"{args.gitea_url}:{args.owner}/{args.repo}.git".replace('https://', 'git@') repo_url = f"{args.gitea_url}:{args.owner}/{args.repo}.git".replace('https://', 'git@')
run_cmd(["git", "clone", repo_url, tmpdirname]) run_cmd(["git", "clone", repo_url, tmpdirname])
run_cmd(['bash', '-c', AIDER_TEST], tmpdirname)
run_cmd(["git", "checkout", args.base_branch], tmpdirname) run_cmd(["git", "checkout", args.base_branch], tmpdirname)
run_cmd(["git", "checkout", "-b", branch_name], tmpdirname) run_cmd(["git", "checkout", "-b", branch_name], tmpdirname)
run_cmd(create_aider_command(f'# {issue_title}\n{issue_description}'), tmpdirname) run_cmd(create_aider_command(f'# {issue_title}\n{issue_description}'), tmpdirname)