class AddNewContributors
  def call
    contributors = repo.all
    new_contributors = AllContributors.new.call

    new_contributors.each do |contributor|
      unless contributors.any? { |c| c.github == contributor[:github] }
        repo.create(contributor)
      end
    end
  end

  private

  def repo
    @repo ||= ContributorRepository.new
  end
end

class AddNewContributors
  def call
    contributors = repo.all
    new_contributors = AllContributors.new.call

    new_contributors = new_contributors.select do |contributor|
      !contributors.any? { |c| c.github == contributor[:github] }
    end

    repo.create(new_contributors)
  end

  private

  def repo
    @repo ||= ContributorRepository.new
  end
end

Save all new contributors in one sql transaction
Save all new contributors in one sql transaction
