mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Fix package webhook (#27839)
Fix #23742 --------- Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
This commit is contained in:
		@@ -171,6 +171,12 @@ func (s *SlackPayload) Release(p *api.ReleasePayload) (api.Payloader, error) {
 | 
			
		||||
	return s.createPayload(text, nil), nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (s *SlackPayload) Package(p *api.PackagePayload) (api.Payloader, error) {
 | 
			
		||||
	text, _ := getPackagePayloadInfo(p, SlackLinkFormatter, true)
 | 
			
		||||
 | 
			
		||||
	return s.createPayload(text, nil), nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Push implements PayloadConvertor Push method
 | 
			
		||||
func (s *SlackPayload) Push(p *api.PushPayload) (api.Payloader, error) {
 | 
			
		||||
	// n new commits
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user