From 81e6202e5c88e5a695d968263573acd6913a8ffa Mon Sep 17 00:00:00 2001 From: rnitta Date: Thu, 1 Nov 2018 12:12:44 +0900 Subject: [PATCH] from COMMENT to REQUEST_CHANGES --- lib/pronto/github.rb | 2 +- spec/pronto/github_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pronto/github.rb b/lib/pronto/github.rb index 4562808c..1721f892 100644 --- a/lib/pronto/github.rb +++ b/lib/pronto/github.rb @@ -49,7 +49,7 @@ def create_pull_request_review(comments) return if comments.empty? options = { - event: 'COMMENT', + event: 'REQUEST_CHANGES', accept: 'application/vnd.github.black-cat-preview+json', # https://developer.github.com/v3/pulls/reviews/#create-a-pull-request-review comments: comments.map do |c| { path: c.path, position: c.position, body: c.body } diff --git a/spec/pronto/github_spec.rb b/spec/pronto/github_spec.rb index 20be32fc..0b9aa3e9 100644 --- a/spec/pronto/github_spec.rb +++ b/spec/pronto/github_spec.rb @@ -154,7 +154,7 @@ module Pronto end let(:options) do { - event: 'COMMENT', + event: 'REQUEST_CHANGES', accept: 'application/vnd.github.black-cat-preview+json', comments: [ { path: 'bad_file.rb', position: 10, body: 'Offense #1' },