Skip to content

Commit 16251f5

Browse files
committed
[BUG] Fix some embed formatting
1 parent 1b238b6 commit 16251f5

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

server/buildserver.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ func updateBranch(cloneURL, branch string, silent bool) {
1212
// Log and Send discord notification
1313
if !silent {
1414
logMessage("Received Push Event for branch: %s", branch)
15-
sendDiscordMessage(branch, "A new build has started for "+branch, "Build Started", yellow, "")
15+
sendDiscordMessage(branch, "A new build has started for `"+branch+"`", "Build Started", yellow, "")
1616
}
1717

1818
// Set up the Working and Output folders
@@ -25,7 +25,7 @@ func updateBranch(cloneURL, branch string, silent bool) {
2525
if err := cmd.Run(); err != nil {
2626
logMessage("Error cloning branch %s: %v", branch, err)
2727
if !silent {
28-
sendDiscordMessage(branch, "A build has failed for "+branch, "Build Failed", red, err.Error())
28+
sendDiscordMessage(branch, "A build has failed for `"+branch+"`", "Build Failed", red, err.Error())
2929
}
3030
return
3131
}
@@ -38,7 +38,7 @@ func updateBranch(cloneURL, branch string, silent bool) {
3838
logMessage("Error resetting branch %s: %v", branch, err)
3939

4040
if !silent {
41-
sendDiscordMessage(branch, "A build has failed for "+branch, "Build Failed", red, err.Error())
41+
sendDiscordMessage(branch, "A build has failed for `"+branch+"`", "Build Failed", red, err.Error())
4242
}
4343
return
4444
}
@@ -67,7 +67,7 @@ func updateBranch(cloneURL, branch string, silent bool) {
6767
}
6868

6969
if !silent {
70-
sendDiscordMessage(branch, "A build has failed for "+branch, "Build Failed", red, finalLog)
70+
sendDiscordMessage(branch, "A build has failed for `"+branch+"`", "Build Failed", red, finalLog)
7171
}
7272
return
7373
}
@@ -81,7 +81,7 @@ func updateBranch(cloneURL, branch string, silent bool) {
8181
logMessage("Successfully built and updated branch: %s", branch)
8282

8383
if !silent {
84-
sendDiscordMessage(branch, "A build has completed for "+branch, "Build Successful", green, "")
84+
sendDiscordMessage(branch, "A build has completed for `"+branch+"`", "Build Successful", green, "")
8585
}
8686
}
8787

@@ -96,7 +96,7 @@ func deleteBranch(branch string) {
9696
logMessage("Deleting branch: %s", branch)
9797
os.RemoveAll(htmlBranchPath)
9898
logMessage("Deleted: %s", htmlBranchPath)
99-
sendDiscordMessage(branch, "A deployment for "+branch+"has been deleted", "Branch Deleted", orange, "")
99+
sendDiscordMessage(branch, "A deployment for `"+branch+"` has been deleted", "Branch Deleted", orange, "")
100100
}
101101

102102
// Fetch all remote branches from the GitHub repo

0 commit comments

Comments
 (0)