Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
841f1310
Commit
841f1310
authored
Jun 17, 2020
by
Kyle Wiebers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert to HTTPParty check for danger template check
parent
3d355cec
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
danger/ce_ee_vue_templates/Dangerfile
danger/ce_ee_vue_templates/Dangerfile
+3
-1
No files found.
danger/ce_ee_vue_templates/Dangerfile
View file @
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment