summaryrefslogtreecommitdiffstats
path: root/services/issue
diff options
context:
space:
mode:
authorJimmy Praet <jimmy.praet@telenet.be>2021-01-17 15:15:57 +0100
committerGitHub <noreply@github.com>2021-01-17 16:15:57 +0200
commit4d9349123fb6102357c39a728c55d648a16be3b8 (patch)
treea9a75d2b7eeecbbf077a6690c992703b2fc4a72a /services/issue
parente6155ff9b689872b3797fe1e2504e5919b0c4888 (diff)
downloadgitea-4d9349123fb6102357c39a728c55d648a16be3b8.tar.gz
gitea-4d9349123fb6102357c39a728c55d648a16be3b8.zip
label and milestone webhooks on issue/pull creation (#14363)
Diffstat (limited to 'services/issue')
-rw-r--r--services/issue/issue.go6
1 files changed, 6 insertions, 0 deletions
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
}