def markdown_link(paths, full_path: true)
      paths = [paths] unless paths.kind_of?(Array)
      commit = head_commit
      repo = pr_json[:repository][:remoteUrl].to_s

      paths = paths.map do |path|
        path, line = path.split("#L")
        url_path = path.start_with?("/") ? path : "/#{path}"
        text = full_path ? path : File.basename(path)
        url_path.gsub!(" ", "%20")
        line_ref = line ? "&line=#{line}" : ""
        create_markdown_link("#{repo}/commit/#{commit}?path=#{url_path}&_a=contents#{line_ref}", text)
      end

      return paths.first if paths.count < 2
      paths.first(paths.count - 1).join(", ") + " & " + paths.last
    end
def markdown_link(paths, full_path: true)
      paths = [paths] unless paths.kind_of?(Array)
      commit = head_commit
      repo = pr_json[:repository][:remoteUrl].to_s

      paths = paths.map do |path|
        path, line = path.split("#L")
        url_path = path.start_with?("/") ? path : "/#{path}"
        text = full_path ? path : File.basename(path)
        url_path.gsub!(" ", "%20")
        line_ref = line ? "&line=#{line}" : ""
        create_markdown_link("#{repo}/commit/#{commit}?path=#{url_path}&_a=contents#{line_ref}", text)
      end

      return paths.first if paths.count < 2
      paths.first(paths.count - 1).join(", ") + " & " + paths.last
    end
@!group VSTS Misc
 Returns a list of Markdown links for a file, or files in the head repository.
 It returns a string of multiple links if passed an array.
 @param    [String or Array<String>] paths
           A list of strings to convert to Markdown links
 @param    [Bool] full_path
           Shows the full path as the link's text, defaults to `true`.

 @return [String]