digitalmars.D - GitHub pull requests made easy
- "Vladimir Panteleev" <vladimir thecybershadow.net> Feb 22 2012
- "Nick Sabalausky" <a a.a> Feb 22 2012
- "David Nadlinger" <see klickverbot.at> Feb 22 2012
- "Nick Sabalausky" <a a.a> Feb 22 2012
- Brad Roberts <braddr puremagic.com> Feb 22 2012
- "Vladimir Panteleev" <vladimir thecybershadow.net> Feb 22 2012
- Brad Anderson <eco gnuk.net> Feb 22 2012
The overhead of creating pull requests was getting to me, so I've written a little script to make it easier: https://gist.github.com/1885859 This script does three things: 1) Pushes the current branch to your GitHub fork 2) Sets the default remote for the branch, so that you can just type "git push" to update your pull request 3) Opens a web browser on the "Create pull request" form, so that you don't have to go to GitHub, navigate to your fork, select the new branch, and click the "Pull Request" button. It will use your GitHub username (if you've set github.user) to find the remote name of your fork. Otherwise, just specify the name of the remote corresponding to your fork as the first parameter. If you create a git alias, you can type "git pullrequest" to run it. To do that, add the line "pullrequest = !/path/to/git-pullrequest.sh $*" to the [alias] section of your ~/.gitconfig. The script is not specific to D; it will work for any GitHub fork. Happy contributing!
Feb 22 2012
"Vladimir Panteleev" <vladimir thecybershadow.net> wrote in message news:hvwkhrqbzbeeqhewmyed forum.dlang.org...The overhead of creating pull requests was getting to me, so I've written a little script to make it easier: https://gist.github.com/1885859 This script does three things: 1) Pushes the current branch to your GitHub fork 2) Sets the default remote for the branch, so that you can just type "git push" to update your pull request 3) Opens a web browser on the "Create pull request" form, so that you don't have to go to GitHub, navigate to your fork, select the new branch, and click the "Pull Request" button. It will use your GitHub username (if you've set github.user) to find the remote name of your fork. Otherwise, just specify the name of the remote corresponding to your fork as the first parameter. If you create a git alias, you can type "git pullrequest" to run it. To do that, add the line "pullrequest = !/path/to/git-pullrequest.sh $*" to the [alias] section of your ~/.gitconfig. The script is not specific to D; it will work for any GitHub fork. Happy contributing!
Great idea! This is actually one example though of why I think GitHub/BitBucket-style functionality should be built into DVCSes.
Feb 22 2012
On Wednesday, 22 February 2012 at 16:51:14 UTC, Vladimir Panteleev wrote:The overhead of creating pull requests was getting to me, so I've written a little script to make it easier: https://gist.github.com/1885859
Personally, I use »hub« as a wrapper for Git all the time: https://github.com/defunkt/hub. Among other things (such as GitHub username/fork awareness when cloning/adding remotes, directly cherry-picking from web URLs, …), it also gives you a »git pull-request« command doing exactly what the name suggests. Also, GitHub recently rolled out a pull request creation shortcut on their repository pages: https://github.com/blog/1039-easier-pull-request-creation David
Feb 22 2012
"David Nadlinger" <see klickverbot.at> wrote in message news:ziirmcwpgshvrymgerfe forum.dlang.org...On Wednesday, 22 February 2012 at 16:51:14 UTC, Vladimir Panteleev wrote:The overhead of creating pull requests was getting to me, so I've written a little script to make it easier: https://gist.github.com/1885859
Personally, I use »hub« as a wrapper for Git all the time: https://github.com/defunkt/hub. Among other things (such as GitHub username/fork awareness when cloning/adding remotes, directly cherry-picking from web URLs, .),
Neat. Hopefully it'll add BitBucket support too at some point.it also gives you a »git pull-request« command doing exactly what the name suggests.
TortoiseGit also has a built-in Pull Request feature, although I've yet to figure out how to work it.Also, GitHub recently rolled out a pull request creation shortcut on their repository pages: https://github.com/blog/1039-easier-pull-request-creation David
Feb 22 2012
On 2/22/2012 8:51 AM, Vladimir Panteleev wrote:The overhead of creating pull requests was getting to me, so I've written a little script to make it easier: https://gist.github.com/1885859 This script does three things: 1) Pushes the current branch to your GitHub fork 2) Sets the default remote for the branch, so that you can just type "git push" to update your pull request 3) Opens a web browser on the "Create pull request" form, so that you don't have to go to GitHub, navigate to your fork, select the new branch, and click the "Pull Request" button. It will use your GitHub username (if you've set github.user) to find the remote name of your fork. Otherwise, just specify the name of the remote corresponding to your fork as the first parameter. If you create a git alias, you can type "git pullrequest" to run it. To do that, add the line "pullrequest = !/path/to/git-pullrequest.sh $*" to the [alias] section of your ~/.gitconfig. The script is not specific to D; it will work for any GitHub fork. Happy contributing!
You could avoid the web ui interaction and just use the github api's. See: https://developer.github.com/
Feb 22 2012
On Wednesday, 22 February 2012 at 18:10:24 UTC, David Nadlinger wrote:On Wednesday, 22 February 2012 at 16:51:14 UTC, Vladimir Panteleev wrote:The overhead of creating pull requests was getting to me, so I've written a little script to make it easier: https://gist.github.com/1885859
Personally, I use »hub« as a wrapper for Git all the time: https://github.com/defunkt/hub. Among other things (such as GitHub username/fork awareness when cloning/adding remotes, directly cherry-picking from web URLs, …), it also gives you a »git pull-request« command doing exactly what the name suggests.
Not bad, does it work on Windows? I don't like that it opens an editor for writing the pull request details. Being able to review your markdown formatting / diff / commits on the website is useful.Also, GitHub recently rolled out a pull request creation shortcut on their repository pages: https://github.com/blog/1039-easier-pull-request-creation
One step less, three remain :P
Feb 22 2012
--bcaec554dbba16da0604b991fbfa Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Wed, Feb 22, 2012 at 11:20 AM, Nick Sabalausky <a a.a> wrote:"David Nadlinger" <see klickverbot.at> wrote in message news:ziirmcwpgshvrymgerfe forum.dlang.org...On Wednesday, 22 February 2012 at 16:51:14 UTC, Vladimir Panteleev wrot=
The overhead of creating pull requests was getting to me, so I've
a little script to make it easier: https://gist.github.com/1885859
Personally, I use =BBhub=AB as a wrapper for Git all the time: https://github.com/defunkt/hub. Among other things (such as GitHub username/fork awareness when cloning/adding remotes, directly cherry-picking from web URLs, .),
Neat. Hopefully it'll add BitBucket support too at some point.
Regards, Brad Andersonit also gives you a =BBgit pull-request=AB command doing exactly what t=
namesuggests.
TortoiseGit also has a built-in Pull Request feature, although I've yet t=
figure out how to work it.Also, GitHub recently rolled out a pull request creation shortcut on
repository pages: https://github.com/blog/1039-easier-pull-request-creation David
--bcaec554dbba16da0604b991fbfa Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Wed, Feb 22, 2012 at 11:20 AM, Nick Sabalausky <span dir=3D"ltr"><a a= .a></span> wrote:<br><div class=3D"gmail_quote"><blockquote class=3D"gma= il_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-lef= t:1ex"> "David Nadlinger" <<a href=3D"mailto:see klickverbot.at">see k= lickverbot.at</a>> wrote in message<br> news:ziirmcwpgshvrymgerfe forum.dlang.org...<br> <div class=3D"im">> On Wednesday, 22 February 2012 at 16:51:14 UTC, Vlad= imir Panteleev wrote:<br> >> The overhead of creating pull requests was getting to me, so I'= ;ve written<br> >> a little script to make it easier:<br> >><br> >> <a href=3D"https://gist.github.com/1885859" target=3D"_blank">http= s://gist.github.com/1885859</a><br> ><br> > Personally, I use =BBhub=AB as a wrapper for Git all the time:<br> > <a href=3D"https://github.com/defunkt/hub" target=3D"_blank">https://g= ithub.com/defunkt/hub</a>. Among other things (such as GitHub<br> > username/fork awareness when cloning/adding remotes, directly<br> </div>> cherry-picking from web URLs, .),<br> <br> Neat. Hopefully it'll add BitBucket support too at some point.<br> <div class=3D"im"><br></div></blockquote><div><br></div><div>Defunkt is one= of the founders of GitHub so I wouldn't wait around for it.</div><div>= <br></div><div>Regards,</div><div>Brad Anderson</div><div>=A0</div><blockqu= ote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc s= olid;padding-left:1ex"> <div class=3D"im"> > it also gives you a =BBgit pull-request=AB command doing exactly what = the name<br> > suggests.<br> ><br> <br> </div>TortoiseGit also has a built-in Pull Request feature, although I'= ve yet to<br> figure out how to work it.<br> <div class=3D"HOEnZb"><div class=3D"h5"><br> > Also, GitHub recently rolled out a pull request creation shortcut on t= heir<br> > repository pages:<br> > <a href=3D"https://github.com/blog/1039-easier-pull-request-creation" = target=3D"_blank">https://github.com/blog/1039-easier-pull-request-creation= </a><br> ><br> > David<br> <br> <br> </div></div></blockquote></div><br> --bcaec554dbba16da0604b991fbfa--
Feb 22 2012









"Nick Sabalausky" <a a.a> 