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

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

24 lines
353 B
Ruby
Raw Normal View History

2022-05-07 20:08:51 +05:30
# frozen_string_literal: true
module MergeRequests
module Mergeability
class CheckDraftStatusService < CheckBaseService
def execute
if merge_request.draft?
failure
else
success
end
end
def skip?
false
end
def cacheable?
false
end
end
end
end