Compare commits
2 Commits
59166b6d8c
...
7999f7a0d9
Author | SHA1 | Date | |
---|---|---|---|
7999f7a0d9 | |||
28253e680c |
|
@ -101,14 +101,13 @@ def run_cmd(cmd: list[str], cwd:Path|None=None) -> None:
|
|||
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@')
|
||||
run_cmd(["git", "clone", repo_url, tmpdirname])
|
||||
run_cmd(["git", "checkout", args.base_branch], 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", "commit", "-m", f"Apply aider for issue {issue_number}"], tmpdirname)
|
||||
run_cmd(["git", "push", "origin", branch_name], tmpdirname)
|
||||
|
||||
def main():
|
||||
|
|
Loading…
Reference in New Issue
Block a user