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.
forgejo/services
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
..
agit Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) (#21551) 2 years ago
asymkey Allow detect whether it's in a database transaction for a context.Context (#21756) 2 years ago
attachment Allow detect whether it's in a database transaction for a context.Context (#21756) 2 years ago
auth Revert unrelated changes for SMTP auth (#21767) 2 years ago
automerge Allow detect whether it's in a database transaction for a context.Context (#21756) 2 years ago
comments Allow detect whether it's in a database transaction for a context.Context (#21756) 2 years ago
context Move almost all functions' parameter db.Engine to context.Context (#19748) 2 years ago
cron Refactor git command arguments and make all arguments to be safe to be used (#21535) 2 years ago
externalaccount Refactor auth package (#17962) 3 years ago
forms Revert unrelated changes for SMTP auth (#21767) 2 years ago
gitdiff Refactor git command arguments and make all arguments to be safe to be used (#21535) 2 years ago
issue Allow detect whether it's in a database transaction for a context.Context (#21756) 2 years ago
lfs Prevent Authorization header for presigned LFS urls (#21531) 2 years ago
mailer feat: notify doers of a merge when automerging (#21553) 2 years ago
markup Link mentioned user in markdown only if they are visible to viewer (#21554) 2 years ago
migrations Handle branch name with prefix in GitHub migration (#20357) 2 years ago
mirror Refactor git command arguments and make all arguments to be safe to be used (#21535) 2 years ago
org Allow detect whether it's in a database transaction for a context.Context (#21756) 2 years ago
packages Allow detect whether it's in a database transaction for a context.Context (#21756) 2 years ago
pull Allow detect whether it's in a database transaction for a context.Context (#21756) 2 years ago
release Allow detect whether it's in a database transaction for a context.Context (#21756) 2 years ago
repository Allow detect whether it's in a database transaction for a context.Context (#21756) 2 years ago
task Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) (#21551) 2 years ago
user Allow detect whether it's in a database transaction for a context.Context (#21756) 2 years ago
webhook Fix webhook attachment text is not set in review comment (#21763) 2 years ago
wiki Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) (#21551) 2 years ago