DEV: Fix rubocop issues (#14715)

This commit is contained in:
Dan Ungureanu
2021-10-27 11:39:28 +03:00
committed by GitHub
parent 6aa6275f3f
commit 69f0f48dc0
27 changed files with 65 additions and 69 deletions

View File

@ -71,7 +71,7 @@ module Onebox
raw["head_commit"]["message"].lines.first
elsif type == :pr_run
pr_url = "https://api.github.com/repos/#{match[:org]}/#{match[:repo]}/pulls/#{match[:pr_id]}"
::MultiJson.load(URI.open(pr_url, read_timeout: timeout))["title"]
::MultiJson.load(URI.parse(pr_url).open(read_timeout: timeout))["title"]
end
{