mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	label and milestone webhooks on issue/pull creation (#14363)
This commit is contained in:
		@@ -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
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user