adding event support

This commit is contained in:
Kohsuke Kawaguchi
2012-01-08 16:53:20 -08:00
parent ac1dd9a0ee
commit 4a507a5625
4 changed files with 88 additions and 1 deletions

View File

@@ -1,6 +1,8 @@
package org.kohsuke;
import junit.framework.TestCase;
import org.kohsuke.github.GHEvent;
import org.kohsuke.github.GHEventInfo;
import org.kohsuke.github.GHHook;
import org.kohsuke.github.GHOrganization;
import org.kohsuke.github.GHOrganization.Permission;
@@ -56,6 +58,9 @@ public class AppTest extends TestCase {
public void testApp() throws IOException {
GitHub gitHub = GitHub.connect();
for (GHEventInfo ev : gitHub.getEvents()) {
System.out.println(ev);
}
// GHRepository r = gitHub.connect().getOrganization("jenkinsci").createRepository("kktest4", "Kohsuke's test", "http://kohsuke.org/", "Everyone", true);
// r.fork();