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