]> source.dussan.org Git - gitea.git/commitdiff
MS Teams webhook misses commit messages (#8225)
authorBjoern Petri <bpetri@users.noreply.github.com>
Wed, 18 Sep 2019 08:51:13 +0000 (10:51 +0200)
committerLauris BH <lauris@nix.lv>
Wed, 18 Sep 2019 08:51:13 +0000 (11:51 +0300)
The current webhook just shows the amount of commits, but misses the actual commit description. While the code is actually there to include the description, it is just not included.

Signed-off-by: Bjoern Petri <bjoern.petri@sundevil.de>
models/webhook_msteams.go

index f42defbd1af70541e89e1f9862b2ad7cbe4384a9..bdbcdbc9d361f6dc13d99198ef90562d85b337e7 100644 (file)
@@ -236,6 +236,7 @@ func getMSTeamsPushPayload(p *api.PushPayload) (*MSTeamsPayload, error) {
                                ActivityTitle:    p.Sender.FullName,
                                ActivitySubtitle: p.Sender.UserName,
                                ActivityImage:    p.Sender.AvatarURL,
+                               Text:             text,
                                Facts: []MSTeamsFact{
                                        {
                                                Name:  "Repository:",