Skip to content

Commit

Permalink
Update auto-pick-script.py
Browse files Browse the repository at this point in the history
  • Loading branch information
CalvinKirs authored Oct 24, 2024
1 parent fa55c4c commit 4cbc741
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/auto-pick-script.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@
new_branch_name = f'auto-pick-{pr.number}-{TARGET_BRANCH}'
repo.create_git_ref(ref=f'refs/heads/{new_branch_name}', sha=base_branch.commit.sha)
print(f"Created new branch {new_branch_name} from {TARGET_BRANCH}.")

git config --global credential.helper store
# Clone the repository locally and switch to the new branch
repo_url = f"git@github.com:{REPO_NAME}.git" # Use SSH URL
repo_url = f"https://github.com/{REPO_NAME}.git"
subprocess.run(["git", "clone", repo_url])
repo_dir = REPO_NAME.split("/")[-1] # Get the directory name
subprocess.run(["git", "checkout", new_branch_name], cwd=repo_dir)
Expand Down

0 comments on commit 4cbc741

Please sign in to comment.