Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jakartaee-spec-project-leads] Script for helping with 'specifications' PR reviews

I'm a big fan of this command line tool:  https://hub.github.com/

If people want a fast way to get all the open PRs onto their machine, this will do it.  Adjust as you like:

    #!/bin/bash
    
    mkdir /tmp/reviews/ 
    cd /tmp/reviews/
    git clone git@xxxxxxxxxx:jakartaee/specifications.git
    cd specifications/
    hub pr list -f "%I%n" | while read n; do (cd .. && git clone git@xxxxxxxxxx:jakartaee/specifications.git pr-$n && cd pr-$n && hub pr checkout $n); done



-- 
David Blevins
http://twitter.com/dblevins
http://www.tomitribe.com


Back to the top