mirror of
https://github.com/jlengrand/github-api.git
synced 2026-03-11 00:11:25 +00:00
Especially also remove the unsued import of javax.xml.bind.DatatypeConverter from GHContent which is non-public API as of Java 8
23 lines
643 B
Java
23 lines
643 B
Java
import org.kohsuke.github.GHRepository.Contributor;
|
|
import org.kohsuke.github.GHUser;
|
|
import org.kohsuke.github.GitHub;
|
|
|
|
/**
|
|
* @author Kohsuke Kawaguchi
|
|
*/
|
|
public class Foo {
|
|
public static void main(String[] args) throws Exception {
|
|
GitHub gh = GitHub.connect();
|
|
for (Contributor c : gh.getRepository("kohsuke/yo").listContributors()) {
|
|
System.out.println(c);
|
|
}
|
|
}
|
|
|
|
private static void testRateLimit() throws Exception {
|
|
GitHub g = GitHub.connectAnonymously();
|
|
for (GHUser u : g.getOrganization("jenkinsci").listMembers()) {
|
|
u.getFollowersCount();
|
|
}
|
|
}
|
|
}
|