1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-03 09:07:19 +00:00

label and milestone webhooks on issue/pull creation (#14363)

This commit is contained in:
Jimmy Praet
2021-01-17 15:15:57 +01:00
committed by GitHub
parent e6155ff9b6
commit 4d9349123f
2 changed files with 12 additions and 0 deletions

View File

@ -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
}