Browse Source
Merge pull request #247 from mujx/invalid-html
Fix invalid HTML on bot message when a branch is deleted
pull/249/head
Travis Ralston
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/github.com/matrix-org/go-neb/services/github/webhook/webhook.go
|
|
@ -233,7 +233,7 @@ func pushHTMLMessage(p github.PushEvent) string { |
|
|
|
// this branch was deleted, no HeadCommit object and deleted=true
|
|
|
|
if p.HeadCommit == nil && p.Deleted != nil && *p.Deleted { |
|
|
|
return fmt.Sprintf( |
|
|
|
`[<u>%s</u>] %s <font color="red"><b>deleted</font> %s</b>`, |
|
|
|
`[<u>%s</u>] %s <b><font color="red">deleted</font> %s</b>`, |
|
|
|
html.EscapeString(*p.Repo.FullName), |
|
|
|
html.EscapeString(*p.Pusher.Name), |
|
|
|
html.EscapeString(branch), |
|
|
|