Hi. We use Bitbucket cloud.
I have two questions.
I tried to sync my forked repository from the origin and realized that there is a merge commit when I clicked the Sync button.
I was wondering why the Sync function made the merge commit.
Before moving bitbucket cloud, the pull reuqest appeared automatically on bitbucket. but now I have to access my forked repository to click the pull request. Shoud I set up for that fuction in Bitbucket cloud ?
Thanks
Hi @김영화,
This is how the sync function works in Bitbucket Cloud, I'm afraid that there is no way to configure this to create a pull request instead.
You mentioned, "Before moving bitbucket cloud, the pull reuqest appeared automatically on bitbucket.".
Kind regards,
Theodora
Thank you for your reply.
Yes I was using Bitbucket Server previously.
"the pull request appeared automatically" means that PR from the forked repo to the parent one.
"the pull request appeared automatically" means that PR button appeared and the PR worked from the forked repo to the parent one.
I am looking forward to hearing you. Thank you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @김영화,
Thank you for your reply.
You mentioned that a PR was created from the forked repo to the parent one.
Please note that Syncing a fork is about merging changes from the parent to the fork, not the other way around.
In Bitbucket Server, there is no out-of-the-box feature to create automatically PRs either from parent to fork or from fork to parent.
If you had PRs getting created automatically, your Bitbucket Server instance may have had a plugin or some other integration that was doing that.
In Bitbucket Cloud, syncing a fork will merge the changes from the parent to the fork without a PR as well. I'm afraid it is not possible to create a PR from parent to fork either manually or automatically, we have a feature request about this that you can vote for, and leave your comment if you'd be interested in that https://jira.atlassian.com/browse/BCLOUD-16847
Pull requests can be created manually from the fork to the parent.
If you want to automate that, you could look into using webhooks that would send a request to one of your servers and then create a PR via our API:
https://developer.atlassian.com/cloud/bitbucket/rest/api-group-pullrequests/#api-repositories-workspace-repo-slug-pullrequests-post
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.