Commit 448e5c13 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge branch 'satellite_exists_in_automerge_check' into 'master'

Satellite exists in automerge check
parents 2ed56ce9 aa6426f4
......@@ -108,8 +108,6 @@ class Projects::MergeRequestsController < Projects::ApplicationController
@merge_request.check_if_can_be_merged
end
render json: {merge_status: @merge_request.merge_status_name}
rescue Gitlab::SatelliteNotExistError
render json: {merge_status: :no_satellite}
end
def automerge
......
module Gitlab
class SatelliteNotExistError < StandardError
def initialize(msg = "Satellite doesn't exist")
super
end
end
module Satellite
class Satellite
include Gitlab::Popen
......
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