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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
56f50cbb
Commit
56f50cbb
authored
Mar 08, 2017
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix how to use PipelinesFinder
parent
44ae9939
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
lib/api/pipelines.rb
lib/api/pipelines.rb
+1
-1
lib/api/v3/pipelines.rb
lib/api/v3/pipelines.rb
+1
-1
No files found.
lib/api/pipelines.rb
View file @
56f50cbb
...
@@ -29,7 +29,7 @@ module API
...
@@ -29,7 +29,7 @@ module API
get
':id/pipelines'
do
get
':id/pipelines'
do
authorize!
:read_pipeline
,
user_project
authorize!
:read_pipeline
,
user_project
pipelines
=
PipelinesFinder
.
new
(
user_project
,
params
).
execute
(
scope:
params
[
:scope
])
pipelines
=
PipelinesFinder
.
new
(
user_project
,
params
).
execute
present
paginate
(
pipelines
),
with:
Entities
::
PipelineBasic
present
paginate
(
pipelines
),
with:
Entities
::
PipelineBasic
end
end
...
...
lib/api/v3/pipelines.rb
View file @
56f50cbb
...
@@ -21,7 +21,7 @@ module API
...
@@ -21,7 +21,7 @@ module API
get
':id/pipelines'
do
get
':id/pipelines'
do
authorize!
:read_pipeline
,
user_project
authorize!
:read_pipeline
,
user_project
pipelines
=
PipelinesFinder
.
new
(
user_project
).
execute
(
scope:
params
[
:scope
])
pipelines
=
PipelinesFinder
.
new
(
user_project
,
scope:
params
[
:scope
]).
execute
present
paginate
(
pipelines
),
with:
::
API
::
Entities
::
Pipeline
present
paginate
(
pipelines
),
with:
::
API
::
Entities
::
Pipeline
end
end
end
end
...
...
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