Skip to content
This repository was archived by the owner on Jul 31, 2025. It is now read-only.

Commit ec53927

Browse files
author
torodev
committed
Specified the GET
Previously doesn't specify the HTTP method to perform
1 parent 901db92 commit ec53927

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/kohsuke/github/GHRepository.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1162,7 +1162,7 @@ public GHSubscription subscribe(boolean subscribed, boolean ignored) throws IOEx
11621162
*/
11631163
public GHSubscription getSubscription() throws IOException {
11641164
try {
1165-
return new Requester(root).to(getApiTailUrl("subscription"), GHSubscription.class).wrapUp(this);
1165+
return root.retrieve().to(getApiTailUrl("subscription"), GHSubscription.class).wrapUp(this);
11661166
} catch (FileNotFoundException e) {
11671167
return null;
11681168
}

0 commit comments

Comments
 (0)