Commit 5d6e4bd2 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix gitlab ci widget for forks

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 6ef3505b
......@@ -166,7 +166,7 @@ class Projects::MergeRequestsController < Projects::ApplicationController
end
def ci_status
status = project.gitlab_ci_service.commit_status(merge_request.last_commit.sha)
status = @merge_request.source_project.gitlab_ci_service.commit_status(merge_request.last_commit.sha)
response = {status: status}
render json: response
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment