Compare commits

..

No commits in common. "7999f7a0d9eeb55b893cf7ad823de012e3dc8f30" and "59166b6d8ca012692bf254fc323bcff4d7a61c02" have entirely different histories.

View File

@ -101,13 +101,14 @@ def run_cmd(cmd: list[str], cwd:Path|None=None) -> None:
subprocess.run(cmd, check=True, cwd=cwd) subprocess.run(cmd, check=True, cwd=cwd)
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_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(["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(issue_description), tmpdirname)
run_cmd(["git", "add", "."], tmpdirname) run_cmd(["git", "add", "."], tmpdirname)
run_cmd(["git", "commit", "-m", f"Apply aider for issue {issue_number}"], tmpdirname)
run_cmd(["git", "push", "origin", branch_name], tmpdirname) run_cmd(["git", "push", "origin", branch_name], tmpdirname)
def main(): def main():