We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 202cff5 + 4d7681b commit c4eefa6Copy full SHA for c4eefa6
1 file changed
src/main/java/org/kohsuke/github/GHRepository.java
@@ -1162,7 +1162,7 @@ public GHSubscription subscribe(boolean subscribed, boolean ignored) throws IOEx
1162
*/
1163
public GHSubscription getSubscription() throws IOException {
1164
try {
1165
- return new Requester(root).to(getApiTailUrl("subscription"), GHSubscription.class).wrapUp(this);
+ return root.retrieve().to(getApiTailUrl("subscription"), GHSubscription.class).wrapUp(this);
1166
} catch (FileNotFoundException e) {
1167
return null;
1168
}
0 commit comments