diff options
author | Giteabot <teabot@gitea.io> | 2023-10-31 18:26:28 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-31 11:26:28 +0100 |
commit | 18a782f73d9f4e049a26445804a932635b16e0f3 (patch) | |
tree | d2af645296983fea83613b2be02b3492dd6e06a5 /services/webhook/slack.go | |
parent | 6af6f8178050ab15fee6de617912f38626a533ea (diff) | |
download | gitea-18a782f73d9f4e049a26445804a932635b16e0f3.tar.gz gitea-18a782f73d9f4e049a26445804a932635b16e0f3.zip |
Fix package webhook (#27839) (#27855)
Backport #27839 by @lunny
Fix #23742
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
Diffstat (limited to 'services/webhook/slack.go')
-rw-r--r-- | services/webhook/slack.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/services/webhook/slack.go b/services/webhook/slack.go index 75079d0fdf..ac27b5bc71 100644 --- a/services/webhook/slack.go +++ b/services/webhook/slack.go @@ -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 |