Create a pull request
When you are ready to start a discussion about your code changes in Bitbucket Data Center and Server, it's time to create a pull request. A pull request is a dedicated forum for discussing proposed changes to a project. To create a pull request you'll need a feature branch that you've made changes to.
To create a pull request
- Click Create pull request in the sidebar.
- Choose the source and destination branches. The source branch is where you made your code changes and the destination is the branch you want to merge to. The source and target branches may be located in different forks:
- Use the Diff and Commits tabs to compare the source and destination branches before creating the pull request.
- Click either Create pull request, or Continue, and enter a title and description that will help people understand what your pull request is about. Use mentions (to notify another user), and markdown (to add formatting) in your description. If there's contributor's guidelines available, have a look to make sure you're complying with the repository's owner's rules.
- Add reviewers – they will receive a notification by email. Other people who have permissions on the project can participate in the discussion if it interests them.
- Click Create.
You will receive email notifications when your reviewers and other participants comment on the pull request, or commit changes to it.
Edit a pull request
After creating a pull request, you can modify it by clicking Edit on the pull request's page. You can edit details such as the Title, Description and the Reviewers. In particular, you can change the Destination branch for the pull request – you'll need Read permission on the branch you want to set.