Skip to content
This repository has been archived by the owner on Nov 18, 2021. It is now read-only.

Change the target branch of a pull request #18

Closed
tjfontaine opened this issue Jun 4, 2013 · 1,519 comments
Closed

Change the target branch of a pull request #18

tjfontaine opened this issue Jun 4, 2013 · 1,519 comments

Comments

@tjfontaine
Copy link
Collaborator

It can be necessary to pick a different target branch for a pull request if you accidentally select the wrong one, or perhaps you're asked to rebase the branch against a development branch vs a stable branch.

@thedrow
Copy link

thedrow commented Jun 5, 2013

Oh this is much needed 👍

@jzaefferer
Copy link

What's wrong with closing and opening a new pull request? You can still reference the previous one if the discussion is of any value.

@thedrow
Copy link

thedrow commented Jun 11, 2013

@jzaefferer There's nothing wrong with it. It's simply inconvenient.

@tjfontaine
Copy link
Collaborator Author

It's also very tedious, and having to open a second because the goal post has changed for a milestone seems inconvenient, especially since I can rebase the target multiple times but in the end all utility of the comparison is lost because it's not pointing to anything sane

@piedar
Copy link

piedar commented Jun 21, 2013

I too would appreciate this feature.

It would also be handy if you could set the pull request target to a new branch. github could create a "pending branch" on upstream's repo. When the pull is merged, it creates - and immediately pushes to - the upstream branch.

@prust

This comment has been minimized.

8 similar comments
@amirnissim

This comment has been minimized.

@bc-ben-buchanan

This comment has been minimized.

@delliott90

This comment has been minimized.

@anton-rudeshko

This comment has been minimized.

@kuanxu

This comment has been minimized.

@reinert

This comment has been minimized.

@odedniv

This comment has been minimized.

@sjaeckel

This comment has been minimized.

@jaen
Copy link

jaen commented Sep 3, 2013

Also in favour.
Just did a pull request to wrong branch and ended up with the longest diff.

@kspangsege

This comment has been minimized.

@marekmurawski

This comment has been minimized.

1 similar comment
@mvdkleijn

This comment has been minimized.

@nicwortel
Copy link

👍 this would be a great improvement. I've sent an email to GitHub support, referencing to this issue.

@timpokorny

This comment has been minimized.

@nicwortel
Copy link

I received the following response from GitHub:

Thanks for your feedback about pull requests, Nic!

I've added your suggestions to our internal feature request list. We don't comment publicly about if or when we may implement a particular feature until it has shipped, however your feedback has definitely been recorded.

Let us know if you have any other suggestions.

Cheers,
Ivan

@mvdkleijn
Copy link

I received the following response from GitHub:

That's their standard "we can't comment" reply. 😄

@ams2990

This comment has been minimized.

@nathanbrauer

This comment has been minimized.

@llvtt

This comment has been minimized.

1 similar comment
@tchap

This comment has been minimized.

@renatorib

This comment has been minimized.

@camsaul
Copy link

camsaul commented Aug 4, 2016

Dear GitHub,

This is a BASIC need for all users. PLEASE do it.

@Myoldmopar
Copy link

Myoldmopar commented Aug 4, 2016 via email

@levithomason
Copy link

levithomason commented Aug 5, 2016

I don't think this is purely a convenience issue.

Some tools, like github_changelog_generator, use the issues and PRs to generate a CHANGELOG. This means erroneous PRs are forever locked in to the CHANGELOG.

Repo metric tools like Pulse and 3rd party tools like http://isitmaintained.com are also thrown off as PRs had to be closed aren't actually resolved. They were closed to change the target branch only.

Without the ability to delete a PR, or change the base branch, our only option is to make a mess of it. That sucks :/ We're developers, we love accuracy and correctness.

Comments are also not carried over. So when you change the target branch after considerable work and comments have been made, you loose all the context. This also sucks as you now have to copy comments over or reference both PRs.

Also, it is super inconvenient. Still ❤️ you, but fix it.

@tjohnell-handy

This comment has been minimized.

1 similar comment
@claydonkey
Copy link

+1

@TPS
Copy link
Collaborator

TPS commented Aug 9, 2016

@levithomason Did you send that lovely piece off to GitHub support & refer them back here? That's the best I've ever seen it requested!

@claydonkey
Copy link

@TPS why you thumb me down dude?

@TPS
Copy link
Collaborator

TPS commented Aug 9, 2016

(@claydonkey #18 (comment) & #18 (comment))

@claydonkey
Copy link

Wow I thought I had time to waste...
So I put a thumbs up on the initial post but I spose the self posted +1s are working if people are getting irritated.

@btamayo
Copy link

btamayo commented Aug 15, 2016

Woo!

https://github.com/blog/2224-change-the-base-branch-of-a-pull-request

@domino14
Copy link

Finally! May this be the last comment on this thread.

@TPS
Copy link
Collaborator

TPS commented Aug 16, 2016

@tjfontaine (OP) @cirosantilli @ALL I hope that https://github.com/blog/2224-change-the-base-branch-of-a-pull-request (from #18 (comment)) means that this can be closed FTW. Else, could someone post what's missing?

(Sorry, @domino14. 😉)

@beldaGR
Copy link

beldaGR commented Aug 24, 2016

I experienced this problem: #750
Changed base branch but Github's visual diff did not change. After merging, previously reverted commits show up.

@XedinUnknown
Copy link

How about giving admins the ability to change the target of a PR that someone else created?

@JimLiu
Copy link

JimLiu commented Jan 12, 2017

Is this the most commented issue on Github?

@biolau
Copy link

biolau commented Feb 16, 2017

Competitors have it just add it please!!!
+1

@rhutchison
Copy link

@biolau it's implemented

@cirosantilli added the implemented label on Aug 16, 2016

@tjohnell-handy
Copy link

I motion for the original comment to be edited with the update of implementation so this "thread" can be forever buried. Sorry to the hundreds of people who just got this email.

@domino14
Copy link

domino14 commented Feb 16, 2017 via email

Repository owner locked and limited conversation to collaborators Feb 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests