Compare commits

...

2 Commits

Author SHA1 Message Date
7999f7a0d9 Include title in aider request
Some checks failed
Run Python tests (through Pytest) / Test (push) Successful in 23s
Verify Python project can be installed, loaded and have version checked / Test (push) Failing after 21s
2025-04-13 15:36:58 +02:00
28253e680c Avoid double commits 2025-04-13 15:34:53 +02:00

View File

@ -101,14 +101,13 @@ 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_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(["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(issue_description), tmpdirname) run_cmd(create_aider_command(f'# {issue_title}\n{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():