mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-22 14:38:30 -04:00
label and milestone webhooks on issue/pull creation (#14363)
This commit is contained in:
parent
e6155ff9b6
commit
4d9349123f
2 changed files with 12 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue