def import_dangerfile(opts)
      if opts.kind_of?(String)
        warn "Use `import_dangerfile(github: '#{opts}')` instead of `import_dangerfile '#{opts}'`."
        import_dangerfile_from_github(opts)
      elsif opts.kind_of?(Hash)
        if opts.key?(:github) || opts.key?(:gitlab)
          import_dangerfile_from_github(opts[:github] || opts[:gitlab], opts[:branch], opts[:path])
        elsif opts.key?(:path)
          import_dangerfile_from_path(opts[:path])
        elsif opts.key?(:gem)
          import_dangerfile_from_gem(opts[:gem])
        else
          raise "`import` requires a Hash with either :github or :gem"
        end
      else
        raise "`import` requires a Hash" unless opts.kind_of?(Hash)
      end
    end
def import_dangerfile(opts)
      if opts.kind_of?(String)
        warn "Use `import_dangerfile(github: '#{opts}')` instead of `import_dangerfile '#{opts}'`."
        import_dangerfile_from_github(opts)
      elsif opts.kind_of?(Hash)
        if opts.key?(:github) || opts.key?(:gitlab)
          import_dangerfile_from_github(opts[:github] || opts[:gitlab], opts[:branch], opts[:path])
        elsif opts.key?(:path)
          import_dangerfile_from_path(opts[:path])
        elsif opts.key?(:gem)
          import_dangerfile_from_gem(opts[:gem])
        else
          raise "`import` requires a Hash with either :github or :gem"
        end
      else
        raise "`import` requires a Hash" unless opts.kind_of?(Hash)
      end
    end
@!group Danger
 Import a Dangerfile.

 @param    [Hash] opts
 @option opts [String] :github GitHub repo
 @option opts [String] :gitlab GitLab repo
 @option opts [String] :gem Gem name
 @option opts [String] :path Path to Dangerfile
 @return   [void]