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
Tatuya Kamada
gitlab-ce
Commits
1ad6b369
Commit
1ad6b369
authored
Jan 27, 2017
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Expose serialized pipelines for commit pipelines
parent
42e3f0fd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
5 deletions
+15
-5
app/controllers/projects/commit_controller.rb
app/controllers/projects/commit_controller.rb
+11
-0
app/views/projects/commit/pipelines.html.haml
app/views/projects/commit/pipelines.html.haml
+4
-5
No files found.
app/controllers/projects/commit_controller.rb
View file @
1ad6b369
...
...
@@ -30,6 +30,17 @@ class Projects::CommitController < Projects::ApplicationController
end
def
pipelines
@pipelines
=
@commit
.
pipelines
.
order
(
id: :desc
)
respond_to
do
|
format
|
format
.
html
format
.
json
do
render
json:
PipelineSerializer
.
new
(
project:
@project
,
user:
@current_user
)
.
with_pagination
(
request
,
response
)
.
represent
(
@pipelines
)
end
end
end
def
branches
...
...
app/views/projects/commit/pipelines.html.haml
View file @
1ad6b369
-
page_title
"Pipelines"
,
"
#{
@commit
.
title
}
(
#{
@commit
.
short_id
}
)"
,
"Commits"
-
page_title
'Pipelines'
,
"
#{
@commit
.
title
}
(
#{
@commit
.
short_id
}
)"
,
'Commits'
=
render
"commit_box"
=
render
"ci_menu"
=
render
"pipelines_list"
,
pipelines:
@commit
.
pipelines
.
order
(
id: :desc
)
=
render
'commit_box'
=
render
'ci_menu'
=
render
'pipelines_list'
,
pipelines:
@pipelines
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