lib/reviewer/plugin.rb in danger-reviewer-0.0.2 vs lib/reviewer/plugin.rb in danger-reviewer-0.0.2.1

- old
+ new

@@ -29,10 +29,10 @@ request = Net::HTTP::Post.new(uri.request_uri, header) request.body = {'reviewers': reviewers}.to_json # Send the request response = http.request(request) - response.status == 201 + response.kind_of?(Net::HTTPCreated) end def find_authors owner, repo = env.ci_source.repo_slug.split('/') branch = github.branch_for_head