Remove the reset_merge_errors method from MR refresh service

parent bf6633ef
...@@ -12,7 +12,6 @@ module MergeRequests ...@@ -12,7 +12,6 @@ module MergeRequests
close_merge_requests close_merge_requests
reload_merge_requests reload_merge_requests
reset_merge_when_pipeline_succeeds reset_merge_when_pipeline_succeeds
reset_merge_errors
mark_pending_todos_done mark_pending_todos_done
cache_merge_requests_closing_issues cache_merge_requests_closing_issues
...@@ -100,12 +99,6 @@ module MergeRequests ...@@ -100,12 +99,6 @@ module MergeRequests
merge_requests_for_source_branch.each(&:reset_merge_when_pipeline_succeeds) merge_requests_for_source_branch.each(&:reset_merge_when_pipeline_succeeds)
end end
def reset_merge_errors
merge_requests_for_source_branch.each do |merge_request|
merge_request.update_attribute(:merge_error, nil)
end
end
def mark_pending_todos_done def mark_pending_todos_done
merge_requests_for_source_branch.each do |merge_request| merge_requests_for_source_branch.each do |merge_request|
todo_service.merge_request_push(merge_request, @current_user) todo_service.merge_request_push(merge_request, @current_user)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment