async function addNote(incidentId, email) {
  const { content } = await ux.prompt(noteContentsPrompt)
  const notePayload = {
    note: {
      content,
    },
  }

  await ux.spinner.start(`🏃  Adding note to incident ${incidentId}`)
  await pd.addNote(incidentId, email, notePayload)
  await ux.spinner.stop(`✅  Note has been added to incident ${incidentId}!`)
}
/**
 * addNote adds a note to the selected incident, authored by the current user
 *
 * @param {string} incidentId The id of the incident to resolve
 * @param {string} email      The current user's email
 */
addNote adds a note to the selected incident, authored by the current user
@param {string} incidentId The id of the incident to resolve
@param {string} email      The current user's email
addNote adds a note to the selected incident authored by the current user @param { string } incidentId The id of the incident to resolve @param { string } email The current user ' s email
async function addNote(incidentId, email) {
  const { content } = await ux.prompt(noteContentsPrompt)
  const notePayload = {
    note: {
      content,
    },
  }
  await ux.spinner.start(`🏃  Adding note to incident ${incidentId}`)
  await pd.addNote(incidentId, email, notePayload)
  await ux.spinner.stop(`✅  Note has been added to incident ${incidentId}!`)
}
async function addNote ( incidentId , email ) { const { content } = await ux . prompt ( noteContentsPrompt ) const notePayload = { note : { content , } , } await ux . spinner . start ( ` nc identId}`) await pd . addNote ( incidentId , email , notePayload ) await ux . spinner . stop ( ` in cidentId}! ` }
addNote adds a note to the selected incident, authored by the current user
 @param {string} incidentId The id of the incident to resolve
 @param {string} email      The current user's email
addNote adds a note to the selected incident authored by the current user @param { string } incidentId The id of the incident to resolve @param { string } email The current user ' s email