Commit d4eb87c7 authored by Andrew Fontaine's avatar Andrew Fontaine

Merge branch '223000-fix-ce-ee-vue-template-danger' into 'master'

Revert to HTTParty check for danger template check

Closes #223000

See merge request gitlab-org/gitlab!34783
parents 83169b71 841f1310
...@@ -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