Fix automerge detection client-side since #3056
This commit is contained in:
parent
d7b667fee2
commit
5ac5510fd6
2 changed files with 2 additions and 2 deletions
|
@ -75,7 +75,7 @@ class MergeRequestsController < ProjectResourceController
|
|||
if @merge_request.unchecked?
|
||||
@merge_request.check_if_can_be_merged
|
||||
end
|
||||
render json: {merge_status: @merge_request.human_merge_status_name}
|
||||
render json: {merge_status: @merge_request.merge_status_name}
|
||||
rescue Gitlab::SatelliteNotExistError
|
||||
render json: {merge_status: :no_satellite}
|
||||
end
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
check_enable: #{@merge_request.unchecked? ? "true" : "false"},
|
||||
url_to_ci_check: "#{ci_status_project_merge_request_path(@project, @merge_request)}",
|
||||
ci_enable: #{@project.gitlab_ci? ? "true" : "false"},
|
||||
current_status: "#{@merge_request.human_merge_status_name}",
|
||||
current_status: "#{@merge_request.merge_status_name}",
|
||||
action: "#{controller.action_name}"
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue