Skip to content

Commit

Permalink
Update auto-pick-script.py (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
CalvinKirs authored Oct 24, 2024
1 parent aad0c92 commit 877cb4a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/auto-pick-script.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@
repo_dir = REPO_NAME.split("/")[-1] # Get the directory name
subprocess.run(["git", "checkout", new_branch_name], cwd=repo_dir)

# Set Git user identity for commits
subprocess.run(["git", "config", "user.email", "your-email@example.com"], cwd=repo_dir)
subprocess.run(["git", "config", "user.name", "Your Name"], cwd=repo_dir)


# Execute the cherry-pick operation
try:
result = subprocess.run(["git", "cherry-pick", merge_commit_sha], cwd=repo_dir, check=True)
Expand Down

0 comments on commit 877cb4a

Please sign in to comment.