Change repository source for Pull Requests

Peter Ansell avatarPeter Ansell created an issue

It would be nice to be able to change the repository source for Pull Requests.

I had a case where I was not able to change the repository source after pushing the branch from my fork to the main repository so that others could more easily collaborate on a long Pull Request.

Workaround is to create a new pull request, but that does not copy across comments from the original.

Comments (4)

  1. Zach Davis

    Hi Peter,

    Thanks for the suggestion. We view a pull request as just that -- a request to pull changes from one branch or repository into another. Therefore changing the source of the pull request, especially after it had been merged, doesn't really make sense. Sorry for any inconvenience this causes.

    Cheers, Zach

  2. Peter Ansell

    If you are being consistent about the policy you should also disable the capability to change the source and destination branches on a Pull Request when you are editing it.

    There is no real distinction (with Git at least) between a different branch in the same repository and the same branch in a different repository.

    Note that I never mentioned modifying the Pull Request after it has been merged.

  3. Russell Jackson

    Ran into this exact same scenario yesterday which wasted hours of time going back and forth when it turns out I was asking the pull-request author to do something impossible.

  4. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.