2019-10-14 11:06:07 -04:00
|
|
|
# frozen_string_literal: true
|
2019-02-20 10:35:57 -05:00
|
|
|
|
2020-02-19 13:09:10 -05:00
|
|
|
class MigrateExternalDiffsWorker # rubocop:disable Scalability/IdempotentWorker
|
2019-02-20 10:35:57 -05:00
|
|
|
include ApplicationWorker
|
|
|
|
|
2019-10-18 07:11:44 -04:00
|
|
|
feature_category :source_code_management
|
|
|
|
|
2019-02-20 10:35:57 -05:00
|
|
|
def perform(merge_request_diff_id)
|
|
|
|
diff = MergeRequestDiff.find_by_id(merge_request_diff_id)
|
|
|
|
return unless diff
|
|
|
|
|
|
|
|
MergeRequests::MigrateExternalDiffsService.new(diff).execute
|
|
|
|
end
|
|
|
|
end
|