blob: 99fa111643d297c0e50ae4888f7e4e8875c7e30f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# frozen_string_literal: true
module MergeRequests
module Mergeability
class CheckRebaseStatusService < CheckBaseService
def self.failure_reason
:need_rebase
end
def execute
return inactive unless merge_request.project.ff_merge_must_be_possible?
if merge_request.should_be_rebased?
failure
else
success
end
end
def skip?
params[:skip_rebase_check].present?
end
def cacheable?
false
end
end
end
end
|