def parse_data(data)
        # Prevent abortive empty JSON.parse error
        data = '{}' if data.blank?

        return "Error from #{@task}: #{data}" if data.is_a?(String) && data.include?('No such')

        data = JSON.parse(data) if data.is_a?(String)

        @output[:relevant_output] = relevant_output( data, @git_files ) unless @git_files.blank?
        data = @output[:relevant_output] unless @settings[:commit].blank?
        data
      end
def parse_data(data)
        # Prevent abortive empty JSON.parse error
        data = '{}' if data.blank?

        return "Error from #{@task}: #{data}" if data.is_a?(String) && data.include?('No such')

        data = JSON.parse(data) if data.is_a?(String)

        @output[:relevant_output] = relevant_output( data, @git_files ) unless @git_files.blank?
        data = @output[:relevant_output] unless @settings[:commit].blank?
        data
      end
Handle data and generate relevant_output if appropriate
 @since 0.1.6
 @see #refine
 @param data [String, Hash]
 @return [String, Hash] String if error, Hash if success