develooper Front page | perl.perl5.porters | Postings from August 2013

Re: the GitHub perl mirror

Thread Previous | Thread Next
From:
Nicholas Clark
Date:
August 19, 2013 17:56
Subject:
Re: the GitHub perl mirror
Message ID:
20130819175547.GU66035@plum.flirble.org
On Mon, Aug 19, 2013 at 10:23:32AM -0700, Jan Dubois wrote:
> On Mon, Aug 19, 2013 at 5:31 AM, Nicholas Clark <nick@ccl4.org> wrote:
> > Is there enough API in github to be able to easily code the right git
> > commands to grab the (anonymous?) branch created by the pull request, and
> > extract the patches to inject elsewhere? Without actually instructing
> > github to do the merge.
> 
> It is trivial to fetch the code for pull requests into your local repo
> (using pull request #11 as a sample):
> 
> $ git remote add github https://github.com/mirrors/perl.git
> $ git fetch github refs/pull/11/head:pr/11
> remote: Counting objects: 11, done.
> remote: Compressing objects: 100% (5/5), done.
> remote: Total 8 (delta 6), reused 5 (delta 3)
> Unpacking objects: 100% (8/8), done.
> >From https://github.com/mirrors/perl
>  * [new ref]         refs/pull/11/head -> pr/11
> $ git checkout pr/11
> Switched to branch 'pr/11'
> 
> And as long as you eventually push this commit back to blead, the pull
> request should be closed automatically (the SHA1 needs to remain for
> Github to recognize it automatically).

Which implies that if the commit is rebased to avoid the trivial merge,
that automatic close no longer works?

Nicholas Clark

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About