Commit 5d6e4bd2d8d2e45407bb437e5b22656cffedc15a
1 parent
6ef3505b
Exists in
spb-stable
and in
3 other branches
Fix gitlab ci widget for forks
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/controllers/projects/merge_requests_controller.rb
@@ -166,7 +166,7 @@ class Projects::MergeRequestsController < Projects::ApplicationController | @@ -166,7 +166,7 @@ class Projects::MergeRequestsController < Projects::ApplicationController | ||
166 | end | 166 | end |
167 | 167 | ||
168 | def ci_status | 168 | def ci_status |
169 | - status = project.gitlab_ci_service.commit_status(merge_request.last_commit.sha) | 169 | + status = @merge_request.source_project.gitlab_ci_service.commit_status(merge_request.last_commit.sha) |
170 | response = {status: status} | 170 | response = {status: status} |
171 | 171 | ||
172 | render json: response | 172 | render json: response |