Commit aa6426f4 authored by Marin Jankovski's avatar Marin Jankovski

Satellite will exist when doing automerge_check.

parent 415c0f4b
...@@ -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