lib/parker/announcement.rb
# Generates the body of the hipchat message for priority 3 issues
# @return [String] containing html formatted hipchat message
Generates the body of the hipchat message for priority 3 issues
Generates the body of the hipchat message for priority 3 issues
def p3_announcement(client)
      p3s = issue_handler.p3_issues
      case client
      when 'hipchat'
        html = "There are currently <b>#{p3s.count}</b> #{ENV['P3_LABEL']} bugs open.<br>"
        html += issue_handler.hipchat_issues_info(p3s)
      when 'slack'
        html = "There are currently *#{p3s.count}* #{ENV['P3_LABEL']} bugs open.\n"
        html += issue_handler.slack_issues_info(p3s)
      end
      html
    end
def p3_announcement ( client ) p3s = issue_handler . p3_issues case client when 'hipchat' html = "There are currently <b>#{p3s.count}</b> #{ENV['P3_LABEL']} bugs open.<br>" html += issue_handler . hipchat_issues_info ( p3s ) when 'slack' html = "There are currently *#{p3s.count}* #{ENV['P3_LABEL']} bugs open.\n" html += issue_handler . slack_issues_info ( p3s ) end html end
Generates the body of the hipchat message for priority 3 issues
Generates the body of the hipchat message for priority 3 issues
containing html formatted hipchat message
containing html formatted hipchat message
String
client
<not_specific>