Revert "Fixed MR handling when GitLab CI project is not present"

This reverts commit 3abcab779e.
This commit is contained in:
Kamil Trzcinski 2015-09-21 14:52:51 +02:00
parent 3abcab779e
commit abaa65efc1
2 changed files with 3 additions and 8 deletions

View File

@ -46,9 +46,7 @@ class GitlabCiService < CiService
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 @@ class GitlabCiService < CiService
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

View File

@ -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")