func (s *CachetClient) UpdateIncident(incident *cachet.Incident, status bool) (bool, error) {
	update := &cachet.IncidentUpdate{
		IncidentID:      incident.ID,
		ComponentID:     incident.ComponentID,
		ComponentStatus: 1, // fixes me
		Status:          1, // fixes me
		Message:         "",
	}

	_, _, err := s.client.IncidentUpdates.Create(incident.ID, update)

	if err != nil {
		return false, err
	}

	return true, nil
}
// UpdateIncident creates an incident update in case it is already opened
// an incident related to the target component/tag
//
// Uses cases:
//  - creates an incident update with (or without) updating incident status
//  - creates an incident update that changes status to resolved and fix the incident
UpdateIncident creates an incident update in case it is already opened
an incident related to the target component/tag

Uses cases:
- creates an incident update with (or without) updating incident status
- creates an incident update that changes status to resolved and fix the incident
// UpdateIncident creates an incident update in case it is already opened // an incident related to the target component / tag // // Uses cases : // - creates an incident update with ( or without ) updating incident status // - creates an incident update that changes status to resolved and fix the incident
func (s *CachetClient) UpdateIncident(incident *cachet.Incident, status bool) (bool, error) {
	update := &cachet.IncidentUpdate{
		IncidentID:      incident.ID,
		ComponentID:     incident.ComponentID,
		ComponentStatus: 1, 
		Status:          1, 
		Message:         "",
	}
	_, _, err := s.client.IncidentUpdates.Create(incident.ID, update)
	if err != nil {
		return false, err
	}
	return true, nil
}
func ( s * CachetClient ) UpdateIncident ( incident * cachet . Incident , status bool ) ( bool , error ) { update := & cachet . IncidentUpdate { IncidentID : incident . ID , ComponentID : incident . ComponentID , ComponentStatus : 1 , Status : 1 , Message : " " , } _ , _ , err := s . client . IncidentUpdates . Create ( incident . ID , update ) if err != nil { return false , err } return true , nil }
UpdateIncident creates an incident update in case it is already opened
an incident related to the target component/tag
UpdateIncident creates an incident update in case it is already opened an incident related to the target component / tag
// fixes me // fixes me