I have a repo where I have two branches: master and master_one. I have one commit (commit1) in master branch that is not present in master_one. Now I have created one more branch 'temp' from master_one. I wanted to merge the changes present in commit1 to my branch temp using PyGithub. I am able to merge it if I am creating a branch from master using the below code:
repo.merge(branch_name,commit_sha_key,"merge to master")
where commit_sha_key
is the sha of commit1.
But same thing I am not able to do for my temp branch that I have created from master_one.
Is there any way to do it? Thanks