humanized_status

in app/models/project_services/hip_chat_message.rb [58:75]


  def humanized_status(build_or_commit=nil)
    build_or_commit ||= commit_status
    case build_or_commit
    when :pending
      "Pending"
    when :running
      "Running"
    when :failed
      "Failed"
    when :success
      "Successful"
    when :canceled
      "Canceled"
    else
      "Unknown"
    end
  end