mirror of
https://github.com/jlengrand/github-api.git
synced 2026-03-12 00:11:22 +00:00
Compare commits
31 Commits
github-api
...
github-api
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c6fdae3b3c | ||
|
|
320cf0fea2 | ||
|
|
0261f1262f | ||
|
|
5278ae3662 | ||
|
|
2941c44de2 | ||
|
|
627222602e | ||
|
|
e13b1ffc48 | ||
|
|
10bafce217 | ||
|
|
4817969495 | ||
|
|
2feda55eb7 | ||
|
|
a74cfd453a | ||
|
|
a360f65133 | ||
|
|
6a903d65a7 | ||
|
|
d4b3166036 | ||
|
|
21a54e2333 | ||
|
|
37c58bffba | ||
|
|
4a42b7277c | ||
|
|
071aea397b | ||
|
|
cd5ab1ae9b | ||
|
|
d29ea97948 | ||
|
|
9930e7bb93 | ||
|
|
b1d37e4848 | ||
|
|
893152cdf3 | ||
|
|
efbf98751d | ||
|
|
caac294e79 | ||
|
|
d145ad8f47 | ||
|
|
628034ae8c | ||
|
|
fee02a3d16 | ||
|
|
ce5ae13bf6 | ||
|
|
26b6a94e32 | ||
|
|
be6ef475ba |
6
pom.xml
6
pom.xml
@@ -7,7 +7,7 @@
|
|||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<artifactId>github-api</artifactId>
|
<artifactId>github-api</artifactId>
|
||||||
<version>1.48</version>
|
<version>1.50</version>
|
||||||
<name>GitHub API for Java</name>
|
<name>GitHub API for Java</name>
|
||||||
<url>http://github-api.kohsuke.org/</url>
|
<url>http://github-api.kohsuke.org/</url>
|
||||||
<description>GitHub API for Java</description>
|
<description>GitHub API for Java</description>
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
<connection>scm:git:git@github.com/kohsuke/${project.artifactId}.git</connection>
|
<connection>scm:git:git@github.com/kohsuke/${project.artifactId}.git</connection>
|
||||||
<developerConnection>scm:git:ssh://git@github.com/kohsuke/${project.artifactId}.git</developerConnection>
|
<developerConnection>scm:git:ssh://git@github.com/kohsuke/${project.artifactId}.git</developerConnection>
|
||||||
<url>http://${project.artifactId}.kohsuke.org/</url>
|
<url>http://${project.artifactId}.kohsuke.org/</url>
|
||||||
<tag>github-api-1.48</tag>
|
<tag>HEAD</tag>
|
||||||
</scm>
|
</scm>
|
||||||
|
|
||||||
<distributionManagement>
|
<distributionManagement>
|
||||||
@@ -61,7 +61,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>junit</groupId>
|
<groupId>junit</groupId>
|
||||||
<artifactId>junit</artifactId>
|
<artifactId>junit</artifactId>
|
||||||
<version>3.8.1</version>
|
<version>4.11</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import javax.xml.bind.DatatypeConverter;
|
|||||||
*
|
*
|
||||||
* @author Alexandre COLLIGNON
|
* @author Alexandre COLLIGNON
|
||||||
*/
|
*/
|
||||||
public final class GHContent {
|
public class GHContent {
|
||||||
private GHRepository owner;
|
private GHRepository owner;
|
||||||
|
|
||||||
private String type;
|
private String type;
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ public final class GHHook {
|
|||||||
public EnumSet<GHEvent> getEvents() {
|
public EnumSet<GHEvent> getEvents() {
|
||||||
EnumSet<GHEvent> s = EnumSet.noneOf(GHEvent.class);
|
EnumSet<GHEvent> s = EnumSet.noneOf(GHEvent.class);
|
||||||
for (String e : events)
|
for (String e : events)
|
||||||
Enum.valueOf(GHEvent.class,e.toUpperCase(Locale.ENGLISH));
|
s.add(Enum.valueOf(GHEvent.class,e.toUpperCase(Locale.ENGLISH)));
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -190,7 +190,7 @@ public class GHIssue {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void setLabels(String... labels) throws IOException {
|
public void setLabels(String... labels) throws IOException {
|
||||||
edit("assignee",labels);
|
edit("labels",labels);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package org.kohsuke.github;
|
package org.kohsuke.github;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
|
|
||||||
@@ -65,6 +66,21 @@ public class GHMilestone {
|
|||||||
return Enum.valueOf(GHMilestoneState.class, state.toUpperCase(Locale.ENGLISH));
|
return Enum.valueOf(GHMilestoneState.class, state.toUpperCase(Locale.ENGLISH));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Closes this issue.
|
||||||
|
*/
|
||||||
|
public void close() throws IOException {
|
||||||
|
edit("state", "closed");
|
||||||
|
}
|
||||||
|
|
||||||
|
private void edit(String key, Object value) throws IOException {
|
||||||
|
new Requester(root)._with(key, value).method("PATCH").to(getApiRoute());
|
||||||
|
}
|
||||||
|
|
||||||
|
protected String getApiRoute() {
|
||||||
|
return "/repos/"+owner.getOwnerName()+"/"+owner.getName()+"/milestones/"+number;
|
||||||
|
}
|
||||||
|
|
||||||
public GHMilestone wrap(GHRepository repo) {
|
public GHMilestone wrap(GHRepository repo) {
|
||||||
this.owner = repo;
|
this.owner = repo;
|
||||||
this.root = repo.root;
|
this.root = repo.root;
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ public class GHMyself extends GHUser {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the read-only list of all the pulic verified keys of the current user.
|
* Returns the read-only list of all the public verified keys of the current user.
|
||||||
*
|
*
|
||||||
* Differently from the getPublicKeys() method, the retrieval of the user's
|
* Differently from the getPublicKeys() method, the retrieval of the user's
|
||||||
* verified public keys does not require any READ/WRITE OAuth Scope to the
|
* verified public keys does not require any READ/WRITE OAuth Scope to the
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
package org.kohsuke.github;
|
package org.kohsuke.github;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.AbstractList;
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
@@ -78,26 +77,44 @@ public class GHOrganization extends GHPerson {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* All the members of this organization.
|
* @deprecated use {@link #listMembers()}
|
||||||
*/
|
*/
|
||||||
public List<GHUser> getMembers() throws IOException {
|
public List<GHUser> getMembers() throws IOException {
|
||||||
return new AbstractList<GHUser>() {
|
return listMembers().asList();
|
||||||
// these are shallow objects with only some limited values filled out
|
}
|
||||||
// TODO: it's better to allow objects to fill themselves in later when missing values are requested
|
|
||||||
final GHUser[] shallow = root.retrieve().to("/orgs/" + login + "/members", GHUser[].class);
|
|
||||||
|
|
||||||
@Override
|
/**
|
||||||
public GHUser get(int index) {
|
* All the members of this organization.
|
||||||
try {
|
*/
|
||||||
return root.getUser(shallow[index].getLogin());
|
public PagedIterable<GHUser> listMembers() throws IOException {
|
||||||
} catch (IOException e) {
|
return listMembers("members");
|
||||||
throw new RuntimeException(e);
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
/**
|
||||||
public int size() {
|
* All the public members of this organization.
|
||||||
return shallow.length;
|
*/
|
||||||
|
public PagedIterable<GHUser> listPublicMembers() throws IOException {
|
||||||
|
return listMembers("public_members");
|
||||||
|
}
|
||||||
|
|
||||||
|
private PagedIterable<GHUser> listMembers(String suffix) throws IOException {
|
||||||
|
return listMembers(suffix, null);
|
||||||
|
}
|
||||||
|
|
||||||
|
public PagedIterable<GHUser> listMembersWithFilter(String filter) throws IOException {
|
||||||
|
return listMembers("members", filter);
|
||||||
|
}
|
||||||
|
|
||||||
|
private PagedIterable<GHUser> listMembers(final String suffix, final String filter) throws IOException {
|
||||||
|
return new PagedIterable<GHUser>() {
|
||||||
|
public PagedIterator<GHUser> iterator() {
|
||||||
|
String filterParams = (filter == null) ? "" : ("?filter=" + filter);
|
||||||
|
return new PagedIterator<GHUser>(root.retrieve().asIterator(String.format("/orgs/%s/%s%s", login, suffix, filterParams), GHUser[].class)) {
|
||||||
|
@Override
|
||||||
|
protected void wrapUp(GHUser[] users) {
|
||||||
|
GHUser.wrap(users, root);
|
||||||
|
}
|
||||||
|
};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -173,4 +190,26 @@ public class GHOrganization extends GHPerson {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Lists up all the repositories using the specified page size.
|
||||||
|
*
|
||||||
|
* @param pageSize size for each page of items returned by GitHub. Maximum page size is 100.
|
||||||
|
*
|
||||||
|
* Unlike {@link #getRepositories()}, this does not wait until all the repositories are returned.
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public PagedIterable<GHRepository> listRepositories(final int pageSize) {
|
||||||
|
return new PagedIterable<GHRepository>() {
|
||||||
|
public PagedIterator<GHRepository> iterator() {
|
||||||
|
return new PagedIterator<GHRepository>(root.retrieve().asIterator("/orgs/" + login + "/repos?per_page=" + pageSize, GHRepository[].class)) {
|
||||||
|
@Override
|
||||||
|
protected void wrapUp(GHRepository[] page) {
|
||||||
|
for (GHRepository c : page)
|
||||||
|
c.wrap(root);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -191,18 +191,30 @@ public class GHPullRequest extends GHIssue {
|
|||||||
/**
|
/**
|
||||||
* Retrieves all the commits associated to this pull request.
|
* Retrieves all the commits associated to this pull request.
|
||||||
*/
|
*/
|
||||||
public PagedIterable<GHPullRequestCommitDetail> listCommits() {
|
public PagedIterable<GHPullRequestCommitDetail> listCommits() {
|
||||||
return new PagedIterable<GHPullRequestCommitDetail>() {
|
return new PagedIterable<GHPullRequestCommitDetail>() {
|
||||||
public PagedIterator<GHPullRequestCommitDetail> iterator() {
|
public PagedIterator<GHPullRequestCommitDetail> iterator() {
|
||||||
return new PagedIterator<GHPullRequestCommitDetail>(root.retrieve().asIterator(
|
return new PagedIterator<GHPullRequestCommitDetail>(root.retrieve().asIterator(
|
||||||
String.format("%s/commits", getApiURL().getPath()),
|
String.format("%s/commits", getApiURL().getPath()),
|
||||||
GHPullRequestCommitDetail[].class)) {
|
GHPullRequestCommitDetail[].class)) {
|
||||||
@Override
|
@Override
|
||||||
protected void wrapUp(GHPullRequestCommitDetail[] page) {
|
protected void wrapUp(GHPullRequestCommitDetail[] page) {
|
||||||
}
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
};
|
|
||||||
}
|
/**
|
||||||
|
* Merge this pull request.
|
||||||
|
*
|
||||||
|
* The equivalent of the big green "Merge pull request" button.
|
||||||
|
*
|
||||||
|
* @param msg
|
||||||
|
* Commit message. If null, the default one will be used.
|
||||||
|
*/
|
||||||
|
public void merge(String msg) throws IOException {
|
||||||
|
new Requester(root).method("PUT").with("commit_message",msg).to(getApiRoute()+"/merge");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,8 +23,10 @@
|
|||||||
*/
|
*/
|
||||||
package org.kohsuke.github;
|
package org.kohsuke.github;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
import com.infradna.tool.bridge_method_injector.WithBridgeMethods;
|
import com.infradna.tool.bridge_method_injector.WithBridgeMethods;
|
||||||
|
|
||||||
|
import javax.xml.bind.DatatypeConverter;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InterruptedIOException;
|
import java.io.InterruptedIOException;
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
@@ -42,7 +44,6 @@ import java.util.Locale;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.TreeMap;
|
import java.util.TreeMap;
|
||||||
import javax.xml.bind.DatatypeConverter;
|
|
||||||
|
|
||||||
import static java.util.Arrays.*;
|
import static java.util.Arrays.*;
|
||||||
|
|
||||||
@@ -59,7 +60,9 @@ public class GHRepository {
|
|||||||
private String url; // this is the API url
|
private String url; // this is the API url
|
||||||
private String html_url; // this is the UI
|
private String html_url; // this is the UI
|
||||||
private GHUser owner; // not fully populated. beware.
|
private GHUser owner; // not fully populated. beware.
|
||||||
private boolean has_issues, has_wiki, fork, _private, has_downloads;
|
private boolean has_issues, has_wiki, fork, has_downloads;
|
||||||
|
@JsonProperty("private")
|
||||||
|
private boolean _private;
|
||||||
private int watchers,forks,open_issues,size;
|
private int watchers,forks,open_issues,size;
|
||||||
private String created_at, pushed_at;
|
private String created_at, pushed_at;
|
||||||
private Map<Integer,GHMilestone> milestones = new HashMap<Integer, GHMilestone>();
|
private Map<Integer,GHMilestone> milestones = new HashMap<Integer, GHMilestone>();
|
||||||
@@ -147,6 +150,13 @@ public class GHRepository {
|
|||||||
return listIssues(state).asList();
|
return listIssues(state).asList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public List<GHIssue> getIssues(GHIssueState state, GHMilestone milestone) throws IOException {
|
||||||
|
return Arrays.asList(GHIssue.wrap(root.retrieve()
|
||||||
|
.to(String.format("/repos/%s/%s/issues?state=%s&milestone=%s", owner.login, name,
|
||||||
|
state.toString().toLowerCase(), milestone == null ? "none" : "" + milestone.getNumber()),
|
||||||
|
GHIssue[].class), this));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Lists up all the issues in this repository.
|
* Lists up all the issues in this repository.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -49,6 +49,18 @@ public class GHTeam {
|
|||||||
return new HashSet<GHUser>(Arrays.asList(GHUser.wrap(org.root.retrieve().to(api("/members"), GHUser[].class), org.root)));
|
return new HashSet<GHUser>(Arrays.asList(GHUser.wrap(org.root.retrieve().to(api("/members"), GHUser[].class), org.root)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Checks if this team has the specified user as a member.
|
||||||
|
*/
|
||||||
|
public boolean hasMember(GHUser user) {
|
||||||
|
try {
|
||||||
|
org.root.retrieve().to("/teams/" + id + "/members/" + user.getLogin());
|
||||||
|
return true;
|
||||||
|
} catch (IOException ignore) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public Map<String,GHRepository> getRepositories() throws IOException {
|
public Map<String,GHRepository> getRepositories() throws IOException {
|
||||||
GHRepository[] repos = org.root.retrieve().to(api("/repos"), GHRepository[].class);
|
GHRepository[] repos = org.root.retrieve().to(api("/repos"), GHRepository[].class);
|
||||||
Map<String,GHRepository> m = new TreeMap<String, GHRepository>();
|
Map<String,GHRepository> m = new TreeMap<String, GHRepository>();
|
||||||
|
|||||||
@@ -76,6 +76,13 @@ public class GHUser extends GHPerson {
|
|||||||
return org.hasMember(this);
|
return org.hasMember(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns true if this user belongs to the specified team.
|
||||||
|
*/
|
||||||
|
public boolean isMemberOf(GHTeam team) {
|
||||||
|
return team.hasMember(this);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns true if this user belongs to the specified organization as a public member.
|
* Returns true if this user belongs to the specified organization as a public member.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -7,7 +7,6 @@ import java.util.Arrays;
|
|||||||
*/
|
*/
|
||||||
public class Foo {
|
public class Foo {
|
||||||
public static void main(String[] args) throws Exception {
|
public static void main(String[] args) throws Exception {
|
||||||
System.out.println(GitHub.connect().createToken(
|
System.out.println(GitHub.connect().getOrganization("cloudbees").getRepository("grandcentral").isPrivate());
|
||||||
Arrays.asList("user", "repo", "delete_repo", "notifications", "gist"), "GitHub API", null).getToken());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,15 +1,30 @@
|
|||||||
package org.kohsuke;
|
package org.kohsuke;
|
||||||
|
|
||||||
import junit.framework.TestCase;
|
import java.io.IOException;
|
||||||
|
import java.net.URL;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.Set;
|
||||||
|
|
||||||
|
import static org.junit.Assert.assertEquals;
|
||||||
|
import static org.junit.Assert.assertFalse;
|
||||||
|
import static org.junit.Assert.assertNotNull;
|
||||||
|
import static org.junit.Assert.assertSame;
|
||||||
|
import static org.junit.Assert.assertTrue;
|
||||||
|
import org.junit.Assume;
|
||||||
|
import org.junit.Before;
|
||||||
|
import org.junit.Test;
|
||||||
|
import org.kohsuke.github.GHBranch;
|
||||||
import org.kohsuke.github.GHCommit;
|
import org.kohsuke.github.GHCommit;
|
||||||
import org.kohsuke.github.GHCommit.File;
|
import org.kohsuke.github.GHCommit.File;
|
||||||
import org.kohsuke.github.GHCommitComment;
|
import org.kohsuke.github.GHCommitComment;
|
||||||
|
import org.kohsuke.github.GHCommitState;
|
||||||
import org.kohsuke.github.GHCommitStatus;
|
import org.kohsuke.github.GHCommitStatus;
|
||||||
import org.kohsuke.github.GHEvent;
|
import org.kohsuke.github.GHEvent;
|
||||||
import org.kohsuke.github.GHEventInfo;
|
import org.kohsuke.github.GHEventInfo;
|
||||||
import org.kohsuke.github.GHEventPayload;
|
import org.kohsuke.github.GHEventPayload;
|
||||||
import org.kohsuke.github.GHHook;
|
import org.kohsuke.github.GHHook;
|
||||||
import org.kohsuke.github.GHBranch;
|
|
||||||
import org.kohsuke.github.GHIssue;
|
import org.kohsuke.github.GHIssue;
|
||||||
import org.kohsuke.github.GHIssueComment;
|
import org.kohsuke.github.GHIssueComment;
|
||||||
import org.kohsuke.github.GHIssueState;
|
import org.kohsuke.github.GHIssueState;
|
||||||
@@ -25,43 +40,51 @@ import org.kohsuke.github.GHUser;
|
|||||||
import org.kohsuke.github.GitHub;
|
import org.kohsuke.github.GitHub;
|
||||||
import org.kohsuke.github.PagedIterable;
|
import org.kohsuke.github.PagedIterable;
|
||||||
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.net.URL;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.Map;
|
|
||||||
import java.util.Set;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Unit test for simple App.
|
* Unit test for simple App.
|
||||||
*/
|
*/
|
||||||
public class AppTest extends TestCase {
|
public class AppTest {
|
||||||
|
|
||||||
private GitHub gitHub;
|
private GitHub gitHub;
|
||||||
|
|
||||||
@Override
|
@Before
|
||||||
public void setUp() throws Exception {
|
public void setUp() throws Exception {
|
||||||
super.setUp();
|
|
||||||
gitHub = GitHub.connect();
|
gitHub = GitHub.connect();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private String getTestRepositoryName() throws IOException {
|
||||||
|
return getUser().getLogin() + "/github-api-test";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
public void testRepoCRUD() throws Exception {
|
public void testRepoCRUD() throws Exception {
|
||||||
GHRepository existing = gitHub.getMyself().getRepository("github-api-test");
|
String targetName = "github-api-test-rename2";
|
||||||
if (existing!=null)
|
|
||||||
existing.delete();
|
deleteRepository("github-api-test-rename");
|
||||||
GHRepository r = gitHub.createRepository("github-api-test", "a test repository", "http://github-api.kohsuke.org/", true);
|
deleteRepository(targetName);
|
||||||
|
GHRepository r = gitHub.createRepository("github-api-test-rename", "a test repository", "http://github-api.kohsuke.org/", true);
|
||||||
r.enableIssueTracker(false);
|
r.enableIssueTracker(false);
|
||||||
r.enableDownloads(false);
|
r.enableDownloads(false);
|
||||||
r.enableWiki(false);
|
r.enableWiki(false);
|
||||||
r.renameTo("github-api-test2");
|
r.renameTo(targetName);
|
||||||
gitHub.getMyself().getRepository("github-api-test2").delete();
|
getUser().getRepository(targetName).delete();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void deleteRepository(final String name) throws IOException {
|
||||||
|
GHRepository repository = getUser().getRepository(name);
|
||||||
|
if(repository != null) {
|
||||||
|
repository.delete();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
public void testCredentialValid() throws IOException {
|
public void testCredentialValid() throws IOException {
|
||||||
assertTrue(gitHub.isCredentialValid());
|
assertTrue(gitHub.isCredentialValid());
|
||||||
assertFalse(GitHub.connect("totally", "bogus").isCredentialValid());
|
GitHub connect = GitHub.connect("totally", "bogus");
|
||||||
|
assertFalse(connect.isCredentialValid());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
public void testIssueWithNoComment() throws IOException {
|
public void testIssueWithNoComment() throws IOException {
|
||||||
GHRepository repository = gitHub.getRepository("kohsuke/test");
|
GHRepository repository = gitHub.getRepository("kohsuke/test");
|
||||||
List<GHIssueComment> v = repository.getIssue(4).getComments();
|
List<GHIssueComment> v = repository.getIssue(4).getComments();
|
||||||
@@ -73,31 +96,103 @@ public class AppTest extends TestCase {
|
|||||||
assertTrue(v.size() == 3);
|
assertTrue(v.size() == 3);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
public void testCreateIssue() throws IOException {
|
public void testCreateIssue() throws IOException {
|
||||||
GHUser u = gitHub.getUser("kohsuke");
|
GHUser u = getUser();
|
||||||
GHRepository r = u.getRepository("test");
|
GHRepository repository = getTestRepository();
|
||||||
GHMilestone someMilestone = r.listMilestones(GHIssueState.CLOSED).iterator().next();
|
GHMilestone milestone = repository.createMilestone(System.currentTimeMillis() + "", "Test Milestone");
|
||||||
GHIssue o = r.createIssue("testing").body("this is body").assignee(u).label("bug").label("question").milestone(someMilestone).create();
|
GHIssue o = repository.createIssue("testing")
|
||||||
System.out.println(o.getUrl());
|
.body("this is body")
|
||||||
|
.assignee(u)
|
||||||
|
.label("bug")
|
||||||
|
.label("question")
|
||||||
|
.milestone(milestone)
|
||||||
|
.create();
|
||||||
|
assertNotNull(o);
|
||||||
o.close();
|
o.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
public void testGetIssues() throws Exception {
|
public void testGetIssues() throws Exception {
|
||||||
List<GHIssue> closedIssues = gitHub.getUser("kohsuke").getRepository("github-api").getIssues(GHIssueState.CLOSED);
|
List<GHIssue> closedIssues = gitHub.getUser("kohsuke").getRepository("github-api").getIssues(GHIssueState.CLOSED);
|
||||||
// prior to using PagedIterable GHRepository.getIssues(GHIssueState) would only retrieve 30 issues
|
// prior to using PagedIterable GHRepository.getIssues(GHIssueState) would only retrieve 30 issues
|
||||||
assertTrue(closedIssues.size() > 30);
|
assertTrue(closedIssues.size() > 30);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private GHRepository getTestRepository() throws IOException {
|
||||||
|
GHRepository repository;
|
||||||
|
try {
|
||||||
|
repository = gitHub.getRepository(getTestRepositoryName());
|
||||||
|
} catch (IOException e) {
|
||||||
|
repository = gitHub.createRepository("github-api-test", "A test repository for testing" +
|
||||||
|
"the github-api project", "http://github-api.kohsuke.org/", true);
|
||||||
|
try {
|
||||||
|
Thread.sleep(2000);
|
||||||
|
} catch (InterruptedException e1) {
|
||||||
|
throw new RuntimeException(e.getMessage(), e);
|
||||||
|
}
|
||||||
|
repository.enableIssueTracker(true);
|
||||||
|
repository.enableDownloads(true);
|
||||||
|
repository.enableWiki(true);
|
||||||
|
}
|
||||||
|
return repository;
|
||||||
|
}
|
||||||
|
|
||||||
|
private GHUser getUser() {
|
||||||
|
try {
|
||||||
|
return gitHub.getMyself();
|
||||||
|
} catch (IOException e) {
|
||||||
|
throw new RuntimeException(e.getMessage(), e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testListIssues() throws IOException {
|
||||||
|
GHUser u = getUser();
|
||||||
|
GHRepository repository = getTestRepository();
|
||||||
|
|
||||||
|
GHMilestone milestone = repository.createMilestone(System.currentTimeMillis() + "", "Test Milestone");
|
||||||
|
milestone.close();
|
||||||
|
GHIssue unhomed = null;
|
||||||
|
GHIssue homed = null;
|
||||||
|
try {
|
||||||
|
unhomed = repository.createIssue("testing").body("this is body")
|
||||||
|
.assignee(u)
|
||||||
|
.label("bug")
|
||||||
|
.label("question")
|
||||||
|
.create();
|
||||||
|
assertEquals(unhomed.getNumber(), repository.getIssues(GHIssueState.OPEN, null).get(0).getNumber());
|
||||||
|
homed = repository.createIssue("testing").body("this is body")
|
||||||
|
.assignee(u)
|
||||||
|
.label("bug")
|
||||||
|
.label("question")
|
||||||
|
.milestone(milestone)
|
||||||
|
.create();
|
||||||
|
assertEquals(homed.getNumber(), repository.getIssues(GHIssueState.OPEN, milestone).get(0).getNumber());
|
||||||
|
} finally {
|
||||||
|
if (unhomed != null) {
|
||||||
|
unhomed.close();
|
||||||
|
}
|
||||||
|
if (homed != null) {
|
||||||
|
homed.close();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
public void testRateLimit() throws IOException {
|
public void testRateLimit() throws IOException {
|
||||||
System.out.println(gitHub.getRateLimit());
|
System.out.println(gitHub.getRateLimit());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
public void testMyOrganizations() throws IOException {
|
public void testMyOrganizations() throws IOException {
|
||||||
Map<String, GHOrganization> org = gitHub.getMyOrganizations();
|
Map<String, GHOrganization> org = gitHub.getMyOrganizations();
|
||||||
assertFalse(org.keySet().contains(null));
|
assertFalse(org.keySet().contains(null));
|
||||||
System.out.println(org);
|
System.out.println(org);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
public void testFetchPullRequest() throws Exception {
|
public void testFetchPullRequest() throws Exception {
|
||||||
GHRepository r = gitHub.getOrganization("jenkinsci").getRepository("jenkins");
|
GHRepository r = gitHub.getOrganization("jenkinsci").getRepository("jenkins");
|
||||||
assertEquals("master",r.getMasterBranch());
|
assertEquals("master",r.getMasterBranch());
|
||||||
@@ -105,8 +200,9 @@ public class AppTest extends TestCase {
|
|||||||
r.getPullRequests(GHIssueState.OPEN);
|
r.getPullRequests(GHIssueState.OPEN);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
public void testFetchPullRequestAsList() throws Exception {
|
public void testFetchPullRequestAsList() throws Exception {
|
||||||
GHRepository r = gitHub.getOrganization("symfony").getRepository("symfony-docs");
|
GHRepository r = gitHub.getRepository("kohsuke/github-api");
|
||||||
assertEquals("master", r.getMasterBranch());
|
assertEquals("master", r.getMasterBranch());
|
||||||
PagedIterable<GHPullRequest> i = r.listPullRequests(GHIssueState.CLOSED);
|
PagedIterable<GHPullRequest> i = r.listPullRequests(GHIssueState.CLOSED);
|
||||||
List<GHPullRequest> prs = i.asList();
|
List<GHPullRequest> prs = i.asList();
|
||||||
@@ -114,50 +210,56 @@ public class AppTest extends TestCase {
|
|||||||
assertTrue(prs.size() > 0);
|
assertTrue(prs.size() > 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
public void testRepoPermissions() throws Exception {
|
public void testRepoPermissions() throws Exception {
|
||||||
|
kohsuke();
|
||||||
GHRepository r = gitHub.getOrganization("jenkinsci").getRepository("jenkins");
|
GHRepository r = gitHub.getOrganization("jenkinsci").getRepository("jenkins");
|
||||||
assertTrue(r.hasPullAccess());
|
assertTrue(r.hasPullAccess());
|
||||||
|
|
||||||
r = gitHub.getOrganization("github").getRepository("tire");
|
r = gitHub.getOrganization("github").getRepository("hub");
|
||||||
assertFalse(r.hasAdminAccess());
|
assertFalse(r.hasAdminAccess());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
public void testGetMyself() throws Exception {
|
public void testGetMyself() throws Exception {
|
||||||
GHMyself me = gitHub.getMyself();
|
GHMyself me = gitHub.getMyself();
|
||||||
System.out.println(me);
|
assertNotNull(me);
|
||||||
GHUser u = gitHub.getUser("kohsuke2");
|
assertNotNull(gitHub.getUser("kohsuke2"));
|
||||||
System.out.println(u);
|
PagedIterable<GHRepository> ghRepositories = me.listRepositories();
|
||||||
for (List<GHRepository> lst : me.iterateRepositories(100)) {
|
assertTrue(ghRepositories.iterator().hasNext());
|
||||||
for (GHRepository r : lst) {
|
|
||||||
System.out.println(r.getPushedAt());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
public void testPublicKeys() throws Exception {
|
public void testPublicKeys() throws Exception {
|
||||||
List<GHKey> keys = gitHub.getMyself().getPublicKeys();
|
List<GHKey> keys = gitHub.getMyself().getPublicKeys();
|
||||||
System.out.println(keys);
|
assertFalse(keys.isEmpty());
|
||||||
}
|
}
|
||||||
|
|
||||||
public void tryOrgFork() throws Exception {
|
@Test
|
||||||
gitHub.getUser("kohsuke").getRepository("rubywm").forkTo(gitHub.getOrganization("jenkinsci"));
|
public void testOrgFork() throws Exception {
|
||||||
|
kohsuke();
|
||||||
|
getUser().getRepository("rubywm").forkTo(gitHub.getOrganization("jenkinsci"));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void tryGetTeamsForRepo() throws Exception {
|
@Test
|
||||||
Set<GHTeam> o = gitHub.getOrganization("jenkinsci").getRepository("rubywm").getTeams();
|
public void testGetTeamsForRepo() throws Exception {
|
||||||
System.out.println(o);
|
kohsuke();
|
||||||
|
assertEquals(1,gitHub.getOrganization("stapler").getRepository("stapler").getTeams().size());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
public void testMembership() throws Exception {
|
public void testMembership() throws Exception {
|
||||||
Set<String> members = gitHub.getOrganization("jenkinsci").getRepository("violations-plugin").getCollaboratorNames();
|
Set<String> members = gitHub.getOrganization("jenkinsci").getRepository("violations-plugin").getCollaboratorNames();
|
||||||
System.out.println(members.contains("kohsuke"));
|
System.out.println(members.contains("kohsuke"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
public void testMemberOrgs() throws Exception {
|
public void testMemberOrgs() throws Exception {
|
||||||
Set<GHOrganization> o = gitHub.getUser("kohsuke").getOrganizations();
|
Set<GHOrganization> o = gitHub.getUser("kohsuke").getOrganizations();
|
||||||
System.out.println(o);
|
System.out.println(o);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
public void testCommit() throws Exception {
|
public void testCommit() throws Exception {
|
||||||
GHCommit commit = gitHub.getUser("jenkinsci").getRepository("jenkins").getCommit("08c1c9970af4d609ae754fbe803e06186e3206f7");
|
GHCommit commit = gitHub.getUser("jenkinsci").getRepository("jenkins").getCommit("08c1c9970af4d609ae754fbe803e06186e3206f7");
|
||||||
System.out.println(commit);
|
System.out.println(commit);
|
||||||
@@ -170,6 +272,7 @@ public class AppTest extends TestCase {
|
|||||||
assertEquals("changelog.html", f.getFileName());
|
assertEquals("changelog.html", f.getFileName());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
public void testListCommits() throws Exception {
|
public void testListCommits() throws Exception {
|
||||||
List<String> sha1 = new ArrayList<String>();
|
List<String> sha1 = new ArrayList<String>();
|
||||||
for (GHCommit c : gitHub.getUser("kohsuke").getRepository("empty-commit").listCommits()) {
|
for (GHCommit c : gitHub.getUser("kohsuke").getRepository("empty-commit").listCommits()) {
|
||||||
@@ -180,12 +283,14 @@ public class AppTest extends TestCase {
|
|||||||
assertEquals(1,sha1.size());
|
assertEquals(1,sha1.size());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
public void testBranches() throws Exception {
|
public void testBranches() throws Exception {
|
||||||
Map<String,GHBranch> b =
|
Map<String,GHBranch> b =
|
||||||
gitHub.getUser("jenkinsci").getRepository("jenkins").getBranches();
|
gitHub.getUser("jenkinsci").getRepository("jenkins").getBranches();
|
||||||
System.out.println(b);
|
System.out.println(b);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
public void testCommitComment() throws Exception {
|
public void testCommitComment() throws Exception {
|
||||||
GHRepository r = gitHub.getUser("jenkinsci").getRepository("jenkins");
|
GHRepository r = gitHub.getUser("jenkinsci").getRepository("jenkins");
|
||||||
PagedIterable<GHCommitComment> comments = r.listCommitComments();
|
PagedIterable<GHCommitComment> comments = r.listCommitComments();
|
||||||
@@ -196,6 +301,7 @@ public class AppTest extends TestCase {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
public void testCreateCommitComment() throws Exception {
|
public void testCreateCommitComment() throws Exception {
|
||||||
GHCommit commit = gitHub.getUser("kohsuke").getRepository("sandbox-ant").getCommit("8ae38db0ea5837313ab5f39d43a6f73de3bd9000");
|
GHCommit commit = gitHub.getUser("kohsuke").getRepository("sandbox-ant").getCommit("8ae38db0ea5837313ab5f39d43a6f73de3bd9000");
|
||||||
GHCommitComment c = commit.createComment("[testing](http://kohsuse.org/)");
|
GHCommitComment c = commit.createComment("[testing](http://kohsuse.org/)");
|
||||||
@@ -205,7 +311,9 @@ public class AppTest extends TestCase {
|
|||||||
c.delete();
|
c.delete();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
public void tryHook() throws Exception {
|
public void tryHook() throws Exception {
|
||||||
|
kohsuke();
|
||||||
GHRepository r = gitHub.getMyself().getRepository("test2");
|
GHRepository r = gitHub.getMyself().getRepository("test2");
|
||||||
GHHook hook = r.createWebHook(new URL("http://www.google.com/"));
|
GHHook hook = r.createWebHook(new URL("http://www.google.com/"));
|
||||||
System.out.println(hook);
|
System.out.println(hook);
|
||||||
@@ -214,6 +322,7 @@ public class AppTest extends TestCase {
|
|||||||
h.delete();
|
h.delete();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
public void testEventApi() throws Exception {
|
public void testEventApi() throws Exception {
|
||||||
for (GHEventInfo ev : gitHub.getEvents()) {
|
for (GHEventInfo ev : gitHub.getEvents()) {
|
||||||
System.out.println(ev);
|
System.out.println(ev);
|
||||||
@@ -225,6 +334,7 @@ public class AppTest extends TestCase {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
public void testApp() throws IOException {
|
public void testApp() throws IOException {
|
||||||
System.out.println(gitHub.getMyself().getEmails());
|
System.out.println(gitHub.getMyself().getEmails());
|
||||||
|
|
||||||
@@ -313,7 +423,9 @@ public class AppTest extends TestCase {
|
|||||||
System.out.println(hooks);
|
System.out.println(hooks);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
public void testOrgRepositories() throws IOException {
|
public void testOrgRepositories() throws IOException {
|
||||||
|
kohsuke();
|
||||||
GHOrganization j = gitHub.getOrganization("jenkinsci");
|
GHOrganization j = gitHub.getOrganization("jenkinsci");
|
||||||
long start = System.currentTimeMillis();
|
long start = System.currentTimeMillis();
|
||||||
Map<String, GHRepository> repos = j.getRepositories();
|
Map<String, GHRepository> repos = j.getRepositories();
|
||||||
@@ -321,7 +433,9 @@ public class AppTest extends TestCase {
|
|||||||
System.out.printf("%d repositories in %dms\n",repos.size(),end-start);
|
System.out.printf("%d repositories in %dms\n",repos.size(),end-start);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
public void testOrganization() throws IOException {
|
public void testOrganization() throws IOException {
|
||||||
|
kohsuke();
|
||||||
GHOrganization j = gitHub.getOrganization("jenkinsci");
|
GHOrganization j = gitHub.getOrganization("jenkinsci");
|
||||||
GHTeam t = j.getTeams().get("Core Developers");
|
GHTeam t = j.getTeams().get("Core Developers");
|
||||||
|
|
||||||
@@ -330,24 +444,30 @@ public class AppTest extends TestCase {
|
|||||||
// t.add(labs.getRepository("xyz"));
|
// t.add(labs.getRepository("xyz"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
public void testCommitStatus() throws Exception {
|
public void testCommitStatus() throws Exception {
|
||||||
GHRepository r = gitHub.getUser("kohsuke").getRepository("test");
|
GHRepository r = gitHub.getRepository("kohsuke/github-api");
|
||||||
GHCommitStatus state;
|
|
||||||
// state = r.createCommitStatus("edacdd76b06c5f3f0697a22ca75803169f25f296", GHCommitState.FAILURE, "http://jenkins-ci.org/", "oops!");
|
|
||||||
|
|
||||||
List<GHCommitStatus> lst = r.listCommitStatuses("edacdd76b06c5f3f0697a22ca75803169f25f296").asList();
|
GHCommitStatus state;
|
||||||
|
|
||||||
|
// state = r.createCommitStatus("ecbfdd7315ef2cf04b2be7f11a072ce0bd00c396", GHCommitState.FAILURE, "http://kohsuke.org/", "testing!");
|
||||||
|
|
||||||
|
List<GHCommitStatus> lst = r.listCommitStatuses("ecbfdd7315ef2cf04b2be7f11a072ce0bd00c396").asList();
|
||||||
state = lst.get(0);
|
state = lst.get(0);
|
||||||
System.out.println(state);
|
System.out.println(state);
|
||||||
assertEquals("oops!",state.getDescription());
|
assertEquals("testing!",state.getDescription());
|
||||||
assertEquals("http://jenkins-ci.org/",state.getTargetUrl());
|
assertEquals("http://kohsuke.org/",state.getTargetUrl());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
public void testCommitShortInfo() throws Exception {
|
public void testCommitShortInfo() throws Exception {
|
||||||
GHCommit commit = gitHub.getUser("kohsuke").getRepository("test").getCommit("c77360d6f2ff2c2e6dd11828ad5dccf72419fa1b");
|
GHRepository r = gitHub.getRepository("kohsuke/github-api");
|
||||||
|
GHCommit commit = r.getCommit("86a2e245aa6d71d54923655066049d9e21a15f23");
|
||||||
assertEquals(commit.getCommitShortInfo().getAuthor().getName(), "Kohsuke Kawaguchi");
|
assertEquals(commit.getCommitShortInfo().getAuthor().getName(), "Kohsuke Kawaguchi");
|
||||||
assertEquals(commit.getCommitShortInfo().getMessage(), "Added a file");
|
assertEquals(commit.getCommitShortInfo().getMessage(), "doc");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
public void testPullRequestPopulate() throws Exception {
|
public void testPullRequestPopulate() throws Exception {
|
||||||
GHRepository r = gitHub.getUser("kohsuke").getRepository("github-api");
|
GHRepository r = gitHub.getUser("kohsuke").getRepository("github-api");
|
||||||
GHPullRequest p = r.getPullRequest(17);
|
GHPullRequest p = r.getPullRequest(17);
|
||||||
@@ -355,15 +475,21 @@ public class AppTest extends TestCase {
|
|||||||
assertNotNull(u.getName());
|
assertNotNull(u.getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
public void testCheckMembership() throws Exception {
|
public void testCheckMembership() throws Exception {
|
||||||
|
kohsuke();
|
||||||
GHOrganization j = gitHub.getOrganization("jenkinsci");
|
GHOrganization j = gitHub.getOrganization("jenkinsci");
|
||||||
GHUser kohsuke = gitHub.getUser("kohsuke");
|
GHUser kohsuke = gitHub.getUser("kohsuke");
|
||||||
GHUser a = gitHub.getUser("a");
|
GHUser b = gitHub.getUser("b");
|
||||||
|
|
||||||
assertTrue(j.hasMember(kohsuke));
|
assertTrue(j.hasMember(kohsuke));
|
||||||
assertFalse(j.hasMember(a));
|
assertFalse(j.hasMember(b));
|
||||||
|
|
||||||
assertTrue(j.hasPublicMember(kohsuke));
|
assertTrue(j.hasPublicMember(kohsuke));
|
||||||
assertFalse(j.hasPublicMember(a));
|
assertFalse(j.hasPublicMember(b));
|
||||||
|
}
|
||||||
|
|
||||||
|
private void kohsuke() {
|
||||||
|
Assume.assumeTrue(getUser().getLogin().equals("kohsuke"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,11 +31,12 @@ public class LifecycleTest extends TestCase {
|
|||||||
gitHub = GitHub.connect();
|
gitHub = GitHub.connect();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testCreateRepository() throws IOException, GitAPIException {
|
public void testCreateRepository() throws IOException, GitAPIException, InterruptedException {
|
||||||
GHMyself myself = gitHub.getMyself();
|
GHMyself myself = gitHub.getMyself();
|
||||||
GHRepository repository = myself.getRepository("github-api-test");
|
GHRepository repository = myself.getRepository("github-api-test");
|
||||||
if (repository != null) {
|
if (repository != null) {
|
||||||
repository.delete();
|
repository.delete();
|
||||||
|
Thread.sleep(1000);
|
||||||
}
|
}
|
||||||
repository = gitHub.createRepository("github-api-test",
|
repository = gitHub.createRepository("github-api-test",
|
||||||
"a test repository used to test kohsuke's github-api", "http://github-api.kohsuke.org/", true);
|
"a test repository used to test kohsuke's github-api", "http://github-api.kohsuke.org/", true);
|
||||||
|
|||||||
Reference in New Issue
Block a user