Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to update a pull request on bitbucket?

Tags:

How do you update one of your own pull requests on bitbucket in your IDE on your local computer?

This workflow does not work as i expected:

  1. Clone your fork
  2. Checkout the branch you used for the pull request
  3. Make changes
  4. git add .
  5. git commit
  6. Push commit (to your fork repository)

So far so good but it seems that the pull request is not updated automatically as soon as the branch (on which the pull request is based) is updated.

Question: is there a way to let pull requests be updated (autoatically/manually) as soon as the branch (on which the pull requests is based) is updated?

like image 626
mostwanted Avatar asked Mar 12 '14 16:03

mostwanted


People also ask

How do I edit a pull request?

To edit a pull request, select the pull request on the Pull requests page, go to its detail page and click "Edit". The target branch (the base branch) and the pull request branch (the branch that will be merged) cannot be changed.

Can I update someone else's pull request?

You cannot add commits directly to User B's pull-request unless you have write access to User B's fork. You can, however, make local additions to the pull-request, by just fetching the pull-request branch into your own local repo (assuming the url for B's fork is public).


1 Answers

Seems to me you asked a bit early.

http://blog.bitbucket.org/2014/04/22/bitbucket-now-auto-updates-pull-requests/

After updating my local branch and push, Bitbucket updated the pull-request automatically.

like image 127
Pablo R. Grande Avatar answered Sep 21 '22 03:09

Pablo R. Grande