~fnux/matrix-alertmanager-receiver

8631f663746c1806bf92bbd760a4d184e7bbc7ed — Timothée Floure 5 months ago aa19d2a master
Display name label on matrix notification
1 files changed, 1 insertions(+), 1 deletions(-)

M main.go
M main.go => main.go +1 -1
@@ 37,7 37,7 @@ func getMatrixMessageFor(alert template.Alert) gomatrix.HTMLMessage {
		prefix = fmt.Sprintf("<strong>%v</strong> ", alert.Status)
	}

	return gomatrix.GetHTMLMessage("m.text", prefix + alert.Annotations["summary"])
	return gomatrix.GetHTMLMessage("m.text", prefix + alert.Labels["name"] + " >> " + alert.Annotations["summary"])
}

func getMatrixClient(homeserver string, user string, token string, targetRoomID string) *gomatrix.Client {