From 1954a9f3f8d998ad6a349c044960a33cd24bfd9a Mon Sep 17 00:00:00 2001 From: Kohsuke Kawaguchi Date: Fri, 11 Mar 2016 23:12:50 -0800 Subject: [PATCH] This isn't just about API URL but it also checks the valid credential --- src/main/java/org/kohsuke/github/GitHub.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/kohsuke/github/GitHub.java b/src/main/java/org/kohsuke/github/GitHub.java index cb94f1076e..7aa928e782 100644 --- a/src/main/java/org/kohsuke/github/GitHub.java +++ b/src/main/java/org/kohsuke/github/GitHub.java @@ -477,7 +477,10 @@ void check(String apiUrl) throws IOException { } /** - * Ensures that the API URL is valid. + * Tests the connection. + * + *

+ * Verify that the API URL and credentials are valid to access this GitHub. * *

* This method returns normally if the endpoint is reachable and verified to be GitHub API URL.