diff --git a/pom.xml b/pom.xml index 6157256b30..b4406d5a53 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 org.kohsuke cortexapps-github-api - 1.321 + 1.322 GitHub API for Java https://github-api.kohsuke.org/ GitHub API for Java diff --git a/src/main/java/org/kohsuke/github/GHPerson.java b/src/main/java/org/kohsuke/github/GHPerson.java index 577b53fd4d..bc18b5d4d0 100644 --- a/src/main/java/org/kohsuke/github/GHPerson.java +++ b/src/main/java/org/kohsuke/github/GHPerson.java @@ -55,18 +55,7 @@ protected synchronized void populate() throws IOException { if (isOffline()) { return; // cannot populate, will have to live with what we have } - String path = getUrlPath(); - if (path != null) { - root().createRequest().withUrlPath(path).fetchInto(this); - } - } - - private String getUrlPath() { - URL url = getUrl(); // Get the full URL - if (url != null) { - return url.getPath(); // Extract only the relative path - } - return null; + root().createRequest().withUrlPath("/users/" + login).fetchInto(this); } /**