forgejo/services/webhook
Jim Kirisame 0ace4cee33
Fix webhook attachment text is not set in review comment (#21763)
The `getPullRequestPayloadInfo` function is widely used in many webhook,
it works well when PR is open or edit. But when we comment in PR review
panel (not PR panel), the comment content is not set as
`attachmentText`.

This commit set comment content as `attachmentText` when PR review, so
webhook could obtain this information via this function.

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
2022-11-13 11:57:52 -05:00
..
deliver.go Add Webhook authorization header (#20926) 2022-11-03 20:23:20 +02:00
deliver_test.go Add Webhook authorization header (#20926) 2022-11-03 20:23:20 +02:00
dingtalk.go
dingtalk_test.go
discord.go
discord_test.go
feishu.go
feishu_test.go
general.go Fix webhook attachment text is not set in review comment (#21763) 2022-11-13 11:57:52 -05:00
general_test.go
main_test.go Add Webhook authorization header (#20926) 2022-11-03 20:23:20 +02:00
matrix.go Add Webhook authorization header (#20926) 2022-11-03 20:23:20 +02:00
matrix_test.go Add Webhook authorization header (#20926) 2022-11-03 20:23:20 +02:00
msteams.go
msteams_test.go
packagist.go
packagist_test.go
payloader.go
slack.go
slack_test.go
telegram.go
telegram_test.go
webhook.go
webhook_test.go
wechatwork.go