You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I am trying to use the Bitbucket API to automatically merge some commits forward from old -> new branch. I have set up a webhook that triggers whenever a new commit is pushed to old. I would then like to take that commit and attempt to merge it forward.
I am using this route:
which takes a "target" commit hash. The target is simply a starting point though. If there are other unmerged commits before my target, the branch will contain all of them. I want the branch to only contain the commit I am specifying. Basically, I'd like to cherry-pick a commit hash into a new branch.
Is this possible at all through the REST API? Is there a possible workaround?
Thank you in advance!
Hi @Tedis Agolli and welcome to the community!
The only workaround I can think of is using the git cherry-pick command in a clone of the repo and then pushing the change to the Bitbucket repo.