Skip to content

Commit 06df208

Browse files
committed
draft PR anchor
Signed-off-by: Effi-S <effi.szt@gmail.com>
1 parent f60851f commit 06df208

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

create_pr_from_issue.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ def create_branch(name: str, root: Path | None = None, remote: str = "origin"):
4949

5050

5151
def add_dummy_commit(branch, root: Path | None = None):
52+
subrun(["git", "switch", "-C", branch],
53+
cwd=root or Path.cwd(), check=True)
54+
5255
subrun(["git", "commit", "--allow-empty", "--only", "-m",
5356
"draft PR anchor", "-s", "--", ":/"],
5457
cwd=root or Path.cwd(),

0 commit comments

Comments
 (0)