Create a pull request

When you are ready to start a discussion about your code changes, 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

  1. Click Create pull request in the sidebar.
  2. 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:

  3. Use the Diff and Commits tabs to compare the source and destination branches before creating the pull request.
  4. 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 Bitbucket Server 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.
  5. 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.
  6. 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 TitleDescription 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.

Last modified on Nov 17, 2020

Was this helpful?

Provide feedback about this article
Powered by Confluence and Scroll Viewport.