pr: Only make failed builds bold

This commit is contained in:
Zero King
2019-06-11 12:46:01 +00:00
parent 6f8aa8f253
commit 09bd9654a9
+4 -1
View File
@@ -163,9 +163,12 @@ func (receiver *Receiver) handleTravisWebhook(payload TravisWebhookPayload) {
if pbInfo[2] == "-dep" {
comment += "'s dependencies"
}
if pbInfo[3] == "fail" {
pbInfo[3] = "**" + pbInfo[3] + "**"
}
pasteLink := strings.SplitN(string(content), "\n", 2)
if len(pasteLink) > 0 {
comment += " **" + pbInfo[3] + "** on " + job.Config.OsxImage + ". [Log](" + pasteLink[0] + ")\n"
comment += " " + pbInfo[3] + " on " + job.Config.OsxImage + ". [Log](" + pasteLink[0] + ")\n"
}
}
}