From 4d9349123fb6102357c39a728c55d648a16be3b8 Mon Sep 17 00:00:00 2001 From: Jimmy Praet Date: Sun, 17 Jan 2021 15:15:57 +0100 Subject: label and milestone webhooks on issue/pull creation (#14363) --- services/issue/issue.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'services/issue') diff --git a/services/issue/issue.go b/services/issue/issue.go index 14de0290a1..90f689a55c 100644 --- a/services/issue/issue.go +++ b/services/issue/issue.go @@ -29,6 +29,12 @@ func NewIssue(repo *models.Repository, issue *models.Issue, labelIDs []int64, uu } notification.NotifyNewIssue(issue, mentions) + if len(issue.Labels) > 0 { + notification.NotifyIssueChangeLabels(issue.Poster, issue, issue.Labels, nil) + } + if issue.Milestone != nil { + notification.NotifyIssueChangeMilestone(issue.Poster, issue, 0) + } return nil } -- cgit v1.2.3