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
812f182a
Commit
812f182a
authored
Jul 26, 2019
by
Tetiana Chupryna
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use new method name
parent
2e5dc94a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
ee/app/controllers/projects/security/dependencies_controller.rb
.../controllers/projects/security/dependencies_controller.rb
+1
-1
ee/lib/api/dependencies.rb
ee/lib/api/dependencies.rb
+1
-1
No files found.
ee/app/controllers/projects/security/dependencies_controller.rb
View file @
812f182a
...
...
@@ -40,7 +40,7 @@ module Projects
end
def
pipeline
@pipeline
||=
project
.
all_pipelines
.
latest_successful_for
(
project
.
default_branch
)
@pipeline
||=
project
.
all_pipelines
.
latest_successful_for
_ref
(
project
.
default_branch
)
end
def
query_params
...
...
ee/lib/api/dependencies.rb
View file @
812f182a
...
...
@@ -4,7 +4,7 @@ module API
class
Dependencies
<
Grape
::
API
helpers
do
def
dependencies_by
(
params
)
pipeline
=
user_project
.
all_pipelines
.
latest_successful_for
(
user_project
.
default_branch
)
pipeline
=
user_project
.
all_pipelines
.
latest_successful_for
_ref
(
user_project
.
default_branch
)
return
[]
unless
pipeline
...
...
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