debian-mirror-gitlab/app/services/merge_requests/mergeability/check_ci_status_service.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
388 B
Ruby
Raw Normal View History

2021-11-18 22:05:49 +05:30
# frozen_string_literal: true
module MergeRequests
module Mergeability
class CheckCiStatusService < CheckBaseService
def execute
if merge_request.mergeable_ci_state?
success
else
failure
end
end
def skip?
params[:skip_ci_check].present?
end
def cacheable?
false
end
end
end
end