Commit aebca55d authored by Adam Niedzielski's avatar Adam Niedzielski

Return valid response in Projects::MergeRequestsController#ci_status when diff_head_sha is nil

parent 6bfa3c93
......@@ -417,7 +417,7 @@ class Projects::MergeRequestsController < Projects::ApplicationController
response = {
title: merge_request.title,
sha: merge_request.diff_head_commit.short_id,
sha: (merge_request.diff_head_commit.short_id if merge_request.diff_head_sha),
status: status,
coverage: coverage
}
......
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