Commit 841f1310 authored by Kyle Wiebers's avatar Kyle Wiebers

Revert to HTTPParty check for danger template check

parent 3d355cec
...@@ -10,7 +10,9 @@ def get_vue_files_with_ce_and_ee_versions(files) ...@@ -10,7 +10,9 @@ def get_vue_files_with_ce_and_ee_versions(files)
"ee/#{file}" "ee/#{file}"
end end
response = gitlab.api.get_file(gitlab.mr_json['project_id'], counterpart_path, 'master') escaped_path = CGI.escape(counterpart_path)
api_endpoint = "https://gitlab.com/api/v4/projects/gitlab-org%2Fgitlab-ee/repository/files/#{escaped_path}?ref=master"
response = HTTParty.get(api_endpoint) # rubocop:disable Gitlab/HTTParty
response.code != 404 response.code != 404
else else
false false
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment