From f0254dbd280926f2907ab093638df38202e25adf Mon Sep 17 00:00:00 2001 From: Aristotelis Dossas Date: Sat, 11 Feb 2017 20:15:53 +0200 Subject: [PATCH] Add comment about weird header in PR Reviews API call --- github/src/main/scala/scabot/github/GithubApi.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github/src/main/scala/scabot/github/GithubApi.scala b/github/src/main/scala/scabot/github/GithubApi.scala index 4d3b735..f8f7859 100644 --- a/github/src/main/scala/scabot/github/GithubApi.scala +++ b/github/src/main/scala/scabot/github/GithubApi.scala @@ -194,7 +194,7 @@ trait GithubApiActions extends GithubJsonProtocol with core.HttpClient { withQuery Map("per_page" -> "100"))) def deletePRComment(id: String) = px (Delete(api("pulls" / "comments" / id))) def requestReview(nb: Int, reviewers: Reviewers) = px (Post(api("pulls" / nb / "requested_reviewers"), reviewers)~> - addHeader("Accept", "application/vnd.github.black-cat-preview+json")) + /** https://developer.github.com/changes/2016-12-14-reviews-api/ */ addHeader("Accept", "application/vnd.github.black-cat-preview+json")) def issueComments(nb: Int) = p[List[IssueComment]](Get(api("issues" / nb / "comments"))) def postIssueComment(nb: Int, c: IssueComment) = p[IssueComment] (Post(api("issues" / nb / "comments"), c))