def report
      attachment = status_report
                   .reject { |_, v| v.empty? }
                   .map do |k, v|
        case k.to_s
        when 'errors' then
          {
            text: v.join("\n"),
            color: 'danger'
          }
        when 'warnings' then
          {
            text: v.join("\n"),
            color: 'warning'
          }
        when 'messages' then
          {
            text: v.join("\n"),
            color: 'good'
          }
        when 'markdowns' then
          v.map do |val|
            {
              text: val.message,
              fields: fields(val)
            }
          end
        end
      end
      attachment.flatten
    end
def report
      attachment = status_report
                   .reject { |_, v| v.empty? }
                   .map do |k, v|
        case k.to_s
        when 'errors' then
          {
            text: v.join("\n"),
            color: 'danger'
          }
        when 'warnings' then
          {
            text: v.join("\n"),
            color: 'warning'
          }
        when 'messages' then
          {
            text: v.join("\n"),
            color: 'good'
          }
        when 'markdowns' then
          v.map do |val|
            {
              text: val.message,
              fields: fields(val)
            }
          end
        end
      end
      attachment.flatten
    end
get status_report text
 @return [[Hash]]