1
1
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-19 07:04:59 +01:00
gitea/services
wxiaoguang de2268ffab
Fix issue attachment handling (#24202)
Close #24195

Some of the changes are taken from my another fix
f07b0de997
in #20147 (although that PR was discarded ....)


The bug is:

1. The old code doesn't handle `removedfile` event correctly
2. The old code doesn't provide attachments for type=CommentTypeReview


This PR doesn't intend to refactor the "upload" code to a perfect state
(to avoid making the review difficult), so some legacy styles are kept.

---------

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: Giteabot <teabot@gitea.io>
2023-04-20 02:39:44 -04:00
..
actions Support triggering workflows by wiki related events (#24119) 2023-04-17 13:49:47 -04:00
agit
asymkey
attachment
auth Allow adding new files to an empty repo (#24164) 2023-04-19 21:40:42 +08:00
automerge
context
convert Make wiki title supports dashes and improve wiki name related features (#24143) 2023-04-19 13:50:10 -04:00
cron
externalaccount
forms
gitdiff
issue Fix issue attachment handling (#24202) 2023-04-20 02:39:44 -04:00
lfs Improve LFS error logs (#24072) 2023-04-12 11:01:41 -04:00
mailer
markup
migrations Update github.com/google/go-github to v51 (#23946) 2023-04-08 19:27:30 +08:00
mirror
org
packages
pull Make more functions use ctx instead of db.DefaultContext (#24068) 2023-04-14 14:18:28 -04:00
release
repository Allow adding new files to an empty repo (#24164) 2023-04-19 21:40:42 +08:00
task
user
webhook
wiki Make wiki title supports dashes and improve wiki name related features (#24143) 2023-04-19 13:50:10 -04:00