mirror of
https://github.com/jlengrand/github-api.git
synced 2026-04-04 08:21:23 +00:00
completed the commit status API
This commit is contained in:
@@ -163,8 +163,11 @@ public class GitHub {
|
||||
// append the access token
|
||||
tailApiUrl = tailApiUrl + (tailApiUrl.indexOf('?')>=0 ?'&':'?') + "access_token=" + oauthAccessToken;
|
||||
}
|
||||
|
||||
return new URL("https://api."+githubServer+tailApiUrl);
|
||||
|
||||
if (tailApiUrl.startsWith("/"))
|
||||
return new URL("https://api."+githubServer+tailApiUrl);
|
||||
else
|
||||
return new URL(tailApiUrl);
|
||||
}
|
||||
|
||||
/*package*/ <T> T retrieve(String tailApiUrl, Class<T> type) throws IOException {
|
||||
|
||||
Reference in New Issue
Block a user