forgejo/routers/api/v1/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
..
blob.go
branch.go Fix protected branch for API (#24013) 2023-04-09 22:52:16 -04:00
collaborators.go
commits.go
file.go Use graceful editorconfig loader to reduce errors when loading malformed editorconfigs (#21257) 2023-04-06 16:01:20 -04:00
fork.go
git_hook.go
git_ref.go
hook.go
hook_test.go
issue.go Make more functions use ctx instead of db.DefaultContext (#24068) 2023-04-14 14:18:28 -04:00
issue_attachment.go Preserve file size when creating attachments (#23406) 2023-03-12 03:48:07 -04:00
issue_comment.go Fix issue attachment handling (#24202) 2023-04-20 02:39:44 -04:00
issue_comment_attachment.go Preserve file size when creating attachments (#23406) 2023-03-12 03:48:07 -04:00
issue_dependency.go Add API to manage issue dependencies (#17935) 2023-03-28 13:23:25 -04:00
issue_label.go
issue_reaction.go
issue_stopwatch.go
issue_subscription.go
issue_tracked_time.go
key.go
label.go
language.go
main_test.go
migrate.go Match api migration behavior to web behavior (#23552) 2023-03-19 02:29:14 -04:00
milestone.go
mirror.go
notes.go
patch.go
pull.go Make more functions use ctx instead of db.DefaultContext (#24068) 2023-04-14 14:18:28 -04:00
pull_review.go Make more functions use ctx instead of db.DefaultContext (#24068) 2023-04-14 14:18:28 -04:00
release.go
release_attachment.go Preserve file size when creating attachments (#23406) 2023-03-12 03:48:07 -04:00
release_tags.go
repo.go Add activity feeds API (#23494) 2023-04-04 21:35:31 +08:00
repo_test.go
star.go
status.go
subscriber.go
tag.go
teams.go
topic.go
transfer.go
tree.go
wiki.go Make wiki title supports dashes and improve wiki name related features (#24143) 2023-04-19 13:50:10 -04:00