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 Display total commit count in hook message (#21400) 2022-10-17 00:22:34 +08:00
dingtalk_test.go Display total commit count in hook message (#21400) 2022-10-17 00:22:34 +08:00
discord.go Display total commit count in hook message (#21400) 2022-10-17 00:22:34 +08:00
discord_test.go Webhook for Wiki changes (#20219) 2022-09-04 20:54:23 +01:00
feishu.go Webhook for Wiki changes (#20219) 2022-09-04 20:54:23 +01:00
feishu_test.go Webhook for Wiki changes (#20219) 2022-09-04 20:54:23 +01:00
general.go Fix webhook attachment text is not set in review comment (#21763) 2022-11-13 11:57:52 -05:00
general_test.go Display total commit count in hook message (#21400) 2022-10-17 00:22:34 +08:00
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 Display total commit count in hook message (#21400) 2022-10-17 00:22:34 +08:00
msteams_test.go Webhook for Wiki changes (#20219) 2022-09-04 20:54:23 +01:00
packagist.go Webhook for Wiki changes (#20219) 2022-09-04 20:54:23 +01:00
packagist_test.go Webhook for Wiki changes (#20219) 2022-09-04 20:54:23 +01:00
payloader.go Webhook for Wiki changes (#20219) 2022-09-04 20:54:23 +01:00
slack.go Display total commit count in hook message (#21400) 2022-10-17 00:22:34 +08:00
slack_test.go Webhook for Wiki changes (#20219) 2022-09-04 20:54:23 +01:00
telegram.go Display total commit count in hook message (#21400) 2022-10-17 00:22:34 +08:00
telegram_test.go Webhook for Wiki changes (#20219) 2022-09-04 20:54:23 +01:00
webhook.go Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) (#21551) 2022-10-24 20:29:17 +01:00
webhook_test.go Decouple HookTask from Repository (#17940) 2022-10-21 18:21:56 +02:00
wechatwork.go Display total commit count in hook message (#21400) 2022-10-17 00:22:34 +08:00