Compare commits
No commits in common. "57f442284f0112f6118fc96ddfa01349e0d4dd33" and "8c9194975bf5a1c3b4c30d478ba8383348801832" have entirely different histories.
57f442284f
...
8c9194975b
|
@ -108,21 +108,6 @@ def parse_args():
|
||||||
parser.add_argument("--base-branch", default="main", help="Base branch to use for new branches (default: main)")
|
parser.add_argument("--base-branch", default="main", help="Base branch to use for new branches (default: main)")
|
||||||
return parser.parse_args()
|
return parser.parse_args()
|
||||||
|
|
||||||
def push_changes(branch_name: str, issue_title: str, issue_description: str, base_branch: str) -> None:
|
|
||||||
cmd = [
|
|
||||||
"git",
|
|
||||||
"push",
|
|
||||||
"origin",
|
|
||||||
f"HEAD:refs/for/{base_branch}",
|
|
||||||
"-o",
|
|
||||||
f"topic={branch_name}",
|
|
||||||
"-o",
|
|
||||||
f"title={issue_title}",
|
|
||||||
"-o",
|
|
||||||
f"description={issue_description}"
|
|
||||||
]
|
|
||||||
run_cmd(cmd)
|
|
||||||
|
|
||||||
def run_cmd(cmd: list[str], cwd:Path|None=None) -> None:
|
def run_cmd(cmd: list[str], cwd:Path|None=None) -> None:
|
||||||
print(cmd)
|
print(cmd)
|
||||||
subprocess.run(cmd, check=True, cwd=cwd)
|
subprocess.run(cmd, check=True, cwd=cwd)
|
||||||
|
@ -135,7 +120,7 @@ def process_issue(args, tmpdirname: Path, branch_name: str, issue_title: str, is
|
||||||
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)
|
||||||
run_cmd(["git", "add", "."], tmpdirname)
|
run_cmd(["git", "add", "."], tmpdirname)
|
||||||
push_changes(branch_name, issue_title, issue_description, args.base_branch)
|
run_cmd(["git", "push", "origin", branch_name], tmpdirname)
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
logging.basicConfig(level='INFO')
|
logging.basicConfig(level='INFO')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user