You've already forked mpbot-github
mirror of
https://github.com/macports/mpbot-github.git
synced 2026-07-13 03:18:39 -07:00
pr: Only make failed builds bold
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user