function printIncident(incident) {
  let incidentStr = `\n\t${incident.title}
  \t\tStatus: ${incident.status}
  \t\tService: ${incident.service.summary}
  \t\tEscalation Policy: ${incident.escalation_policy.summary}
  \t\tUrgency: ${incident.urgency}
  \t\tCreated at: ${incident.created_at}
  \t\tLast modified: ${incident.last_status_change_at}`
  if (incident.assignments.length) {
    incidentStr += `\n\t\tPeople assigned:`
    incident.assignments.map(async assignee => {
      incidentStr += `\n\t\t\t${assignee.summary}`
    })
  }
  incidentStr += `\n\t\tLink: ${incident.html_url}\n`
  return incidentStr
}
/**
 * printIncident pretty prints an incident.
 */
printIncident pretty prints an incident.
printIncident pretty prints an incident .
function printIncident(incident) {
  let incidentStr = `\n\t${incident.title}
  \t\tStatus: ${incident.status}
  \t\tService: ${incident.service.summary}
  \t\tEscalation Policy: ${incident.escalation_policy.summary}
  \t\tUrgency: ${incident.urgency}
  \t\tCreated at: ${incident.created_at}
  \t\tLast modified: ${incident.last_status_change_at}`
  if (incident.assignments.length) {
    incidentStr += `\n\t\tPeople assigned:`
    incident.assignments.map(async assignee => {
      incidentStr += `\n\t\t\t${assignee.summary}`
    })
  }
  incidentStr += `\n\t\tLink: ${incident.html_url}\n`
  return incidentStr
}
function printIncident ( incident ) { let incidentStr = ` \n \t ${ incident . title } \t \t ${ incident . status } \t \t ${ incident . service . summary } \t \t ${ incident . escalation_policy . summary } \t \t ${ incident . urgency } \t \t ${ incident . created_at } \t \t ${ incident . last_status_change_at } ` if ( incident . assignments . length ) { incidentStr += ` \n \t \t ` incident . assignments . map ( async assignee => { incidentStr += ` \n \t \t \t ${ assignee . summary } ` } ) } incidentStr += ` \n \t \t ${ incident . html_url } \n ` return incidentStr }
printIncident pretty prints an incident.
printIncident pretty prints an incident .