You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/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>
2 years ago
..
deliver.go Add Webhook authorization header (#20926) 2 years ago
deliver_test.go Add Webhook authorization header (#20926) 2 years ago
dingtalk.go Display total commit count in hook message (#21400) 2 years ago
dingtalk_test.go Display total commit count in hook message (#21400) 2 years ago
discord.go Display total commit count in hook message (#21400) 2 years ago
discord_test.go Webhook for Wiki changes (#20219) 2 years ago
feishu.go Webhook for Wiki changes (#20219) 2 years ago
feishu_test.go Webhook for Wiki changes (#20219) 2 years ago
general.go Fix webhook attachment text is not set in review comment (#21763) 2 years ago
general_test.go Display total commit count in hook message (#21400) 2 years ago
main_test.go Add Webhook authorization header (#20926) 2 years ago
matrix.go Add Webhook authorization header (#20926) 2 years ago
matrix_test.go Add Webhook authorization header (#20926) 2 years ago
msteams.go Display total commit count in hook message (#21400) 2 years ago
msteams_test.go Webhook for Wiki changes (#20219) 2 years ago
packagist.go Webhook for Wiki changes (#20219) 2 years ago
packagist_test.go Webhook for Wiki changes (#20219) 2 years ago
payloader.go Webhook for Wiki changes (#20219) 2 years ago
slack.go Display total commit count in hook message (#21400) 2 years ago
slack_test.go Webhook for Wiki changes (#20219) 2 years ago
telegram.go Display total commit count in hook message (#21400) 2 years ago
telegram_test.go Webhook for Wiki changes (#20219) 2 years ago
webhook.go Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) (#21551) 2 years ago
webhook_test.go Decouple HookTask from Repository (#17940) 2 years ago
wechatwork.go Display total commit count in hook message (#21400) 2 years ago