mirror of
https://github.com/jlengrand/github-api.git
synced 2026-04-05 08:21:21 +00:00
turns out we never exposed the ability to specify the custom URL.
So no backward compatibility provision is needed. Also in this change, I stopped exposin the password. See the code comment for more details
This commit is contained in:
@@ -18,7 +18,7 @@ public class GitHubTest extends TestCase {
|
||||
}
|
||||
|
||||
public void testGitHubServerWithoutProtocol() throws Exception {
|
||||
GitHub hub = GitHub.connect("https://enterprise.kohsuke.org/api/v3", "kohsuke", "token", "password");
|
||||
GitHub hub = GitHub.connect("enterprise.kohsuke.org", "kohsuke", "token", "password");
|
||||
assertEquals("https://enterprise.kohsuke.org/api/v3/test", hub.getApiURL("/test").toString());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user