debian-mirror-gitlab/app/services/merge_requests/resolve_todos_service.rb

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

25 lines
480 B
Ruby
Raw Normal View History

2021-04-29 21:17:54 +05:30
# frozen_string_literal: true
module MergeRequests
class ResolveTodosService
include BaseServiceUtility
def initialize(merge_request, user)
@merge_request = merge_request
@user = user
end
def async_execute
2021-06-08 01:23:25 +05:30
MergeRequests::ResolveTodosWorker.perform_async(merge_request.id, user.id)
2021-04-29 21:17:54 +05:30
end
def execute
todo_service.resolve_todos_for_target(merge_request, user)
end
private
attr_reader :merge_request, :user
end
end