0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-27 09:04:24 +01:00
gitea/routers/web/repo
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 Add runner check in repo action page (#24124) 2023-04-19 20:51:20 +08:00
activity.go
attachment.go Make Release Download URLs predictable (#23891) 2023-04-12 17:05:23 +08:00
blame.go Sort repo topic labels by name (#24123) 2023-04-14 15:29:05 -04:00
branch.go
cherry_pick.go
commit.go
compare.go Don't list root repository on compare page if pulls not allowed (#24183) 2023-04-19 11:16:46 -04:00
download.go
editor.go Allow adding new files to an empty repo (#24164) 2023-04-19 21:40:42 +08:00
editor_test.go
find.go
helper.go
helper_test.go
http.go
http_test.go
issue.go Fix issue attachment handling (#24202) 2023-04-20 02:39:44 -04:00
issue_content_history.go
issue_dependency.go
issue_label.go Make label templates have consistent behavior and priority (#23749) 2023-04-10 16:44:02 +08:00
issue_label_test.go Make label templates have consistent behavior and priority (#23749) 2023-04-10 16:44:02 +08:00
issue_lock.go
issue_stopwatch.go
issue_test.go
issue_timetrack.go
issue_watch.go
lfs.go
main_test.go
middlewares.go
migrate.go
milestone.go
packages.go
patch.go
projects.go Add unset default project column (#23531) 2023-04-19 10:28:28 -04:00
projects_test.go
pull.go
pull_review.go
release.go fix calReleaseNumCommitsBehind (#24148) 2023-04-18 21:11:17 +02:00
release_test.go
render.go
repo.go Make Release Download URLs predictable (#23891) 2023-04-12 17:05:23 +08:00
runners.go
search.go
setting.go
setting_protected_branch.go
setting_secrets.go
settings_test.go
tag.go
topic.go
treelist.go
view.go Allow adding new files to an empty repo (#24164) 2023-04-19 21:40:42 +08:00
view_test.go
webhook.go
wiki.go Make wiki title supports dashes and improve wiki name related features (#24143) 2023-04-19 13:50:10 -04:00
wiki_test.go Make wiki title supports dashes and improve wiki name related features (#24143) 2023-04-19 13:50:10 -04:00