Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
a1729d464505
Commit
abaa65ef
authored
Sep 21, 2015
by
Kamil Trzcinski
Browse files
Revert "Fixed MR handling when GitLab CI project is not present"
This reverts commit
d1ed62ec8b8f
.
parent
d1ed62ec8b8f
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/models/project_services/gitlab_ci_service.rb
View file @
a1729d46
...
...
@@ -46,9 +46,7 @@ def execute(data)
end
ci_project
=
Ci
::
Project
.
find_by
(
gitlab_id:
project
.
id
)
if
ci_project
Ci
::
CreateCommitService
.
new
.
execute
(
ci_project
,
data
)
end
Ci
::
CreateCommitService
.
new
.
execute
(
ci_project
,
data
)
end
def
get_ci_commit
(
sha
,
ref
)
...
...
@@ -87,9 +85,7 @@ def commit_coverage(sha, ref)
end
def
build_page
(
sha
,
ref
)
if
project
.
gitlab_ci_project
.
present?
Ci
::
RoutesHelper
.
ci_project_ref_commits_path
(
project
.
gitlab_ci_project
,
ref
,
sha
)
end
Ci
::
RoutesHelper
.
ci_project_ref_commits_path
(
project
.
gitlab_ci_project
,
ref
,
sha
)
end
def
title
...
...
app/views/projects/merge_requests/widget/_heading.html.haml
View file @
a1729d46
...
...
@@ -10,8 +10,7 @@
%span
CI build
#{
status
}
for
#{
@merge_request
.
last_commit_short_sha
}
.
%span
.ci-coverage
-
if
ci_build_details_path
(
@merge_request
)
=
link_to
"View build details"
,
ci_build_details_path
(
@merge_request
),
:"data-no-turbolink"
=>
"data-no-turbolink"
=
link_to
"View build details"
,
ci_build_details_path
(
@merge_request
),
:"data-no-turbolink"
=>
"data-no-turbolink"
.ci_widget
=
icon
(
"spinner spin"
)
...
...
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