Browse Source

Fix line break for MS teams webhook (#13081)

Signed-off-by: Ivan Valdes <ivan@vald.es>

Co-authored-by: Lauris BH <lauris@nix.lv>
mj-v1.14.3
Iván Valdés 2 years ago
committed by GitHub
parent
commit
06f1cdde6e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      modules/webhook/msteams.go

2
modules/webhook/msteams.go

@ -229,7 +229,7 @@ func (m *MSTeamsPayload) Push(p *api.PushPayload) (api.Payloader, error) {
strings.TrimRight(commit.Message, "\r\n"), commit.Author.Name)
// add linebreak to each commit but the last
if i < len(p.Commits)-1 {
text += "\n"
text += "\n\n"
}
}

Loading…
Cancel
Save