A repo that allows running automated Actions on a subset of github repos via Filters
From top level run mvn clean install
java -jar tools.github-1.0.0-SNAPSHOT.jar -u USERNAME -f FILTER -a ACTION
Using the jar generated in target (tools.github-1.0.0-SNAPSHOT.jar)
Place your credentials in ~/.github as
login=<username>
password=<password>
usage: [-a ] [-f ] [-if ] [-list ] [-of ] [-u ] -a,--action action to do when found -f,--filter filter to apply in search -list,--help list (actions) or (options) -u,--user user/organization to apply filter to
-f is a filter -a is an action
example use cases
clone all private repos
java -jar tools.github-1.0.0-SNAPSHOT.jar -u dpwspoon -a clone\(myRepos\) -f private
delete specific repo
java -jar tools.github-1.0.0-SNAPSHOT.jar -u dpwspoon -a delete -f byName\(gateway.bridge\)
find repos that have .travis.yml files java -jar target/tools.github-1.0.0-SNAPSHOT.jar -u dpwspoon -f hasFile(/,.travis.yml) -a print-names
all Matches all repos
private Matches private repos
hasFile(path,file-name) filters repositories that has file
public Matches public repos
byName(name, name2 etc) gets a repo matching the name
print-names: prints the name of the repo
addTeam(organization,team): Adds a team from an organization to a repository
clone(directory): clones the repo to a directory/name-of-repo
delete: deletes the repo
listOpenPullRequests lists open pull requests
listOpenIssues lists open issues
Mileage may vary. Most of these have not been fully tested yet. Also, the lib is best used to write your own Java Program