mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-26 06:16:56 +09:00
Supports migrating from Gitea-compatible forges like Forgejo and fixes many migration bugs. 1. Pre-release and `+gitea-` suffixed server versions no longer drop reviews, reactions and pagination. 2. Review states, dismissals, scoped and archived labels and merge bases are migrated. 3. Disabled units, external trackers, unavailable release assets, and GitLab confidential issues and internal notes are skipped. 4. Credentials are only sent to the source host, and `Retry-After` rate limits are waited out. 5. GitHub migrations of only issues or pull requests, basic auth clones and dismissed reviews work again. 6. The API returns 404 for releases of a disabled unit and shows migrated authors as mannequins, replacing the never populated `original_author` and `original_author_id` fields. Fixes: https://github.com/go-gitea/gitea/issues/19533 Fixes: https://github.com/go-gitea/gitea/issues/35885 Fixes: https://github.com/go-gitea/gitea/issues/18275 Fixes: https://github.com/go-gitea/gitea/issues/35069 Fixes: https://github.com/go-gitea/gitea/issues/17763 Fixes: https://github.com/go-gitea/gitea/issues/39548 Co-authored-by: bircni <bircni@icloud.com>
77 lines
2.8 KiB
Handlebars
77 lines
2.8 KiB
Handlebars
{{template "base/head" .}}
|
|
<div role="main" aria-label="{{.Title}}" class="page-content repository new migrate">
|
|
<div class="ui container medium-width">
|
|
<h3 class="ui top attached header">
|
|
{{ctx.Locale.Tr "repo.migrate.migrate" .service.Title}}
|
|
</h3>
|
|
<div class="ui attached segment">
|
|
{{template "base/alert" .}}
|
|
<form class="ui form left-right-form form-fetch-action" action="{{.Link}}" method="post">
|
|
{{template "repo/migrate/common-init" (dict "ServiceType" .service)}}
|
|
|
|
<div class="inline required field">
|
|
<label>{{ctx.Locale.Tr "repo.migrate.clone_address"}}</label>
|
|
<input name="clone_addr" autofocus required>
|
|
<span class="help">
|
|
{{ctx.Locale.Tr "repo.migrate.clone_address_desc"}}{{if .ContextUser.CanImportLocal}} {{ctx.Locale.Tr "repo.migrate.clone_local_path"}}{{end}}
|
|
</span>
|
|
</div>
|
|
|
|
<div class="inline field">
|
|
<label>{{ctx.Locale.Tr "access_token"}}</label>
|
|
<input name="auth_token" type="password" autocomplete="new-password">
|
|
<a target="_blank" href="https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html">{{svg "octicon-question"}}</a>
|
|
<span class="help">{{ctx.Locale.Tr "repo.migrate.gitlab_token_desc"}}</span>
|
|
</div>
|
|
|
|
{{template "repo/migrate/common-options" .}}
|
|
|
|
<div class="inline field">
|
|
<label>{{ctx.Locale.Tr "repo.migrate_items"}}</label>
|
|
<div class="ui checkbox">
|
|
<input name="wiki" type="checkbox">
|
|
<label>{{ctx.Locale.Tr "repo.migrate_items_wiki"}}</label>
|
|
</div>
|
|
</div>
|
|
<div id="migrate_items" class="inline field">
|
|
<span class="help">{{ctx.Locale.Tr "repo.migrate.migrate_items_options"}}</span>
|
|
<div class="inline field">
|
|
<label></label>
|
|
<div class="ui checkbox">
|
|
<input name="labels" type="checkbox">
|
|
<label>{{ctx.Locale.Tr "repo.migrate_items_labels"}}</label>
|
|
</div>
|
|
<div class="ui checkbox">
|
|
<input name="issues" type="checkbox">
|
|
<label>{{ctx.Locale.Tr "repo.migrate_items_issues"}}</label>
|
|
</div>
|
|
</div>
|
|
<div class="inline field">
|
|
<label></label>
|
|
<div class="ui checkbox">
|
|
<input name="pull_requests" type="checkbox">
|
|
<label>{{ctx.Locale.Tr "repo.migrate_items_merge_requests"}}</label>
|
|
</div>
|
|
<div class="ui checkbox">
|
|
<input name="releases" type="checkbox">
|
|
<label>{{ctx.Locale.Tr "repo.migrate_items_releases"}}</label>
|
|
</div>
|
|
</div>
|
|
<div class="inline field">
|
|
<label></label>
|
|
<div class="ui checkbox">
|
|
<input name="milestones" type="checkbox">
|
|
<label>{{ctx.Locale.Tr "repo.migrate_items_milestones"}}</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="divider"></div>
|
|
|
|
{{template "repo/migrate/common-migrated-repo"}}
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{template "base/footer" .}}
|