mirror of
https://github.com/jlengrand/github-api.git
synced 2026-03-17 00:11:23 +00:00
18 lines
466 B
Java
18 lines
466 B
Java
import org.kohsuke.github.GHRepository;
|
|
import org.kohsuke.github.GitHub;
|
|
|
|
import java.util.Collection;
|
|
|
|
/**
|
|
* @author Kohsuke Kawaguchi
|
|
*/
|
|
public class Foo {
|
|
public static void main(String[] args) throws Exception {
|
|
Collection<GHRepository> lst = GitHub.connect().getUser("kohsuke").getRepositories().values();
|
|
for (GHRepository r : lst) {
|
|
System.out.println(r.getName());
|
|
}
|
|
System.out.println(lst.size());
|
|
}
|
|
}
|