0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-02-11 08:08:41 -05:00
forgejo/routers/api/v1/repo
Giteabot 937996c74c
Match api migration behavior to web behavior (#23552) (#23573)
Backport #23552 by @atomaka

When attempting to migrate a repository via the API endpoint comments
are always included. This can create a problem if your source repository
has issues or pull requests but you do not want to import them into
Gitea that displays as something like:

> Error 500: We were unable to perform the request due to server-side
problems. 'comment references non existent IssueIndex 4

There are only two ways to resolve this:
1. Migrate using the web interface
2. Migrate using the API including at issues or pull requests.

This PR matches the behavior of the API migration router to the web
migration router.

Co-authored-by: Andrew Tomaka <atomaka@atomaka.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2023-03-19 15:30:02 +08:00
..
blob.go
branch.go
collaborators.go
commits.go
file.go
fork.go
git_hook.go
git_ref.go
hook.go
hook_test.go
issue.go
issue_attachment.go Preserve file size when creating attachments (#23406) (#23426) 2023-03-12 12:45:39 +01:00
issue_comment.go
issue_comment_attachment.go Preserve file size when creating attachments (#23406) (#23426) 2023-03-12 12:45:39 +01:00
issue_label.go
issue_reaction.go
issue_stopwatch.go
issue_subscription.go
issue_tracked_time.go
key.go
label.go Add loading yaml label template files (#22976) (#23232) 2023-03-01 21:57:34 -05:00
language.go
main_test.go Refactor the setting to make unit test easier (#22405) 2023-02-20 00:12:01 +08:00
migrate.go Match api migration behavior to web behavior (#23552) (#23573) 2023-03-19 15:30:02 +08:00
milestone.go
mirror.go
notes.go Fix panic when getting notes by ref (#23372) (#23377) 2023-03-08 15:17:31 -05:00
patch.go
pull.go Add force_merge to merge request and fix checking mergable (#23010) 2023-02-21 08:42:07 -06:00
pull_review.go
release.go
release_attachment.go Preserve file size when creating attachments (#23406) (#23426) 2023-03-12 12:45:39 +01:00
release_tags.go
repo.go Handle missing README in create repos API (#23387) (#23510) 2023-03-16 21:04:52 -04:00
repo_test.go
star.go
status.go
subscriber.go
tag.go
teams.go
topic.go
transfer.go
tree.go
wiki.go