From db8969707d32ccbda75ec9cf361ad8332a1005f6 Mon Sep 17 00:00:00 2001 From: Rechi Date: Fri, 6 Apr 2018 10:00:00 +0200 Subject: [PATCH] [fix] fetch labels with HTTP GET method --- src/main/java/org/kohsuke/github/GHPullRequest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/kohsuke/github/GHPullRequest.java b/src/main/java/org/kohsuke/github/GHPullRequest.java index b5f02b964c..1d8545f114 100644 --- a/src/main/java/org/kohsuke/github/GHPullRequest.java +++ b/src/main/java/org/kohsuke/github/GHPullRequest.java @@ -393,7 +393,7 @@ public enum MergeMethod{ MERGE, SQUASH, REBASE } private void fetchIssue() throws IOException { if (!fetchedIssueDetails) { - new Requester(root).to(getIssuesApiRoute(), this); + new Requester(root).method("GET").to(getIssuesApiRoute(), this); fetchedIssueDetails = true; } }