New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the target branch of a pull request #18

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

Comments

Projects
None yet
@tjfontaine
Collaborator

tjfontaine commented Jun 4, 2013

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

This comment has been minimized.

thedrow commented Jun 5, 2013

Oh this is much needed 👍

@jzaefferer

This comment has been minimized.

jzaefferer commented Jun 11, 2013

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

This comment has been minimized.

thedrow commented Jun 11, 2013

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

@tjfontaine

This comment has been minimized.

Collaborator

tjfontaine commented Jun 11, 2013

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

This comment has been minimized.

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.

prust commented Jul 1, 2013

👍

8 similar comments
@amirnissim

This comment has been minimized.

amirnissim commented Aug 6, 2013

+1

@bc-ben-buchanan

This comment has been minimized.

bc-ben-buchanan commented Aug 13, 2013

+1

@delliott90

This comment has been minimized.

delliott90 commented Aug 19, 2013

+1

@anton-rudeshko

This comment has been minimized.

anton-rudeshko commented Aug 27, 2013

+1

@kuanxu

This comment has been minimized.

kuanxu commented Aug 29, 2013

+1

@reinert

This comment has been minimized.

reinert commented Aug 30, 2013

+1

@odedniv

This comment has been minimized.

odedniv commented Aug 31, 2013

+1

@sjaeckel

This comment has been minimized.

sjaeckel commented Sep 3, 2013

👍

@jaen

This comment has been minimized.

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.

kspangsege commented Sep 5, 2013

👍

@marekmurawski

This comment has been minimized.

marekmurawski commented Oct 2, 2013

👍

1 similar comment
@mvdkleijn

This comment has been minimized.

mvdkleijn commented Oct 2, 2013

👍

@nicwortel

This comment has been minimized.

nicwortel commented Oct 2, 2013

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

@timpokorny

This comment has been minimized.

timpokorny commented Oct 3, 2013

+1

@nicwortel

This comment has been minimized.

nicwortel commented Oct 4, 2013

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

This comment has been minimized.

mvdkleijn commented Oct 4, 2013

I received the following response from GitHub:

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

@ams2990

This comment has been minimized.

ams2990 commented Oct 10, 2013

+1

@nathanbrauer

This comment has been minimized.

nathanbrauer commented Oct 23, 2013

👍

@llvtt

This comment has been minimized.

llvtt commented Nov 7, 2013

+1

1 similar comment
@tchap

This comment has been minimized.

tchap commented Nov 9, 2013

👍

@avit avit referenced this issue Nov 12, 2013

Closed

Release 3.0.3 #218

@renatorib

This comment has been minimized.

renatorib commented Aug 2, 2016

👍

@camsaul camsaul referenced this issue Aug 4, 2016

Closed

fix #3105: Title in User guide page #3122

1 of 1 task complete
@camsaul

This comment has been minimized.

camsaul commented Aug 4, 2016

Dear GitHub,

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

@Myoldmopar

This comment has been minimized.

Myoldmopar commented Aug 4, 2016

@levithomason

This comment has been minimized.

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.

tjohnell-handy commented Aug 8, 2016

+1

1 similar comment
@claydonkey

This comment has been minimized.

claydonkey commented Aug 8, 2016

+1

@TPS

This comment has been minimized.

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

This comment has been minimized.

claydonkey commented Aug 9, 2016

@TPS why you thumb me down dude?

@TPS

This comment has been minimized.

TPS commented Aug 9, 2016

@claydonkey

This comment has been minimized.

claydonkey commented Aug 9, 2016

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

This comment has been minimized.

btamayo commented Aug 15, 2016

@domino14

This comment has been minimized.

domino14 commented Aug 15, 2016

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

@TPS

This comment has been minimized.

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

This comment has been minimized.

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

This comment has been minimized.

XedinUnknown commented Dec 1, 2016

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

@JimLiu

This comment has been minimized.

JimLiu commented Jan 12, 2017

Is this the most commented issue on Github?

@biolau

This comment has been minimized.

biolau commented Feb 16, 2017

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

@rhutchison

This comment has been minimized.

rhutchison commented Feb 16, 2017

@biolau it's implemented

@cirosantilli added the implemented label on Aug 16, 2016

@tjohnell-handy

This comment has been minimized.

tjohnell-handy commented Feb 16, 2017

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

This comment has been minimized.

domino14 commented Feb 16, 2017

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.