async function resolveIncident(incidentId, email) {
  const resolvePayload = {
    incident: {
      type: 'incident_reference',
      status: 'resolved',
    },
  }

  await ux.spinner.start(`♻️  Resolving incident ${incidentId}`)
  await pd.updateIncident(incidentId, email, resolvePayload)
  await ux.spinner.stop(`✅  Indicent ${incidentId} has been resolved!`)
}
/**
 * resolveIncident resolves an incident with the current user as the resolver.
 *
 * @param {string} incidentId The id of the incident to resolve
 * @param {string} email      The current user's email
 */
resolveIncident resolves an incident with the current user as the resolver.
@param {string} incidentId The id of the incident to resolve
@param {string} email      The current user's email
resolveIncident resolves an incident with the current user as the resolver . @param { string } incidentId The id of the incident to resolve @param { string } email The current user ' s email
async function resolveIncident(incidentId, email) {
  const resolvePayload = {
    incident: {
      type: 'incident_reference',
      status: 'resolved',
    },
  }
  await ux.spinner.start(`♻️  Resolving incident ${incidentId}`)
  await pd.updateIncident(incidentId, email, resolvePayload)
  await ux.spinner.stop(`✅  Indicent ${incidentId} has been resolved!`)
}
async function resolveIncident ( incidentId , email ) { const resolvePayload = { incident : { type : 'incident_reference' , status : 'resolved' , } , } await ux . spinner . start ( ` ci dentId}`) await pd . updateIncident ( incidentId , email , resolvePayload ) await ux . spinner . stop ( ` in cidentId}  h }
resolveIncident resolves an incident with the current user as the resolver.
resolveIncident resolves an incident with the current user as the resolver .