mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-26 06:16:56 +09:00
Add migration from Bitbucket Server (Data Center). It has no issues, wiki, milestones or releases, so those are not offered. Migrated: git data with tags and LFS, and pull requests with state, draft flag, merge commit/base, comments, approvals and inline code comments including resolved threads. Multi-line ranges become a `Lines a-b:` text prefix, as Gitea anchors code comments to one line. Auth is an HTTP access token (personal, project or repository) or username/password; 429 responses are retried. Changes outside the downloader: - `ReviewComment.Resolved`, applied by the uploader. - The uploader creates a fork PR's head branch from its head commit when already in the repository, instead of fetching the fork (Bitbucket keeps it in `refs/pull-requests/<id>/from`; private forks need credentials). Tested with unit tests, responses recorded from Bitbucket 10.5.1, and an end-to-end migration. Independent of https://github.com/go-gitea/gitea/pull/38607 (Bitbucket Cloud); the service type enum value needs adjusting for whichever lands second. --------- Co-authored-by: bircni <bircni@icloud.com>
35 lines
1.2 KiB
Handlebars
35 lines
1.2 KiB
Handlebars
{{template "base/head" .}}
|
|
<div role="main" aria-label="{{.Title}}" class="page-content repository new migrate">
|
|
<div class="ui middle very relaxed page grid">
|
|
<div class="column">
|
|
{{template "repo/migrate/helper" .}}
|
|
<div class="ui cards migrate-entries">
|
|
{{range .Services}}
|
|
<a class="ui card migrate-entry flex-text-block" href="{{AppSubUrl}}/repo/migrate?service_type={{.}}&org={{$.Org}}&mirror={{$.Mirror}}">
|
|
{{if eq .Name "github"}}
|
|
{{svg "octicon-mark-github" 184 "tw-p-4"}}
|
|
{{else if eq .Name "gitlab"}}
|
|
{{svg "gitea-gitlab" 184 "tw-p-4"}}
|
|
{{else if eq .Name "bitbucketserver"}}
|
|
{{svg "gitea-bitbucket" 184 "tw-p-4"}}
|
|
{{else if eq .Name "gitbucket"}}
|
|
{{svg "gitea-gitbucket" 184 "tw-p-4"}}
|
|
{{else}}
|
|
{{svg (printf "gitea-%s" .Name) 184}}
|
|
{{end}}
|
|
<div class="content">
|
|
<div class="header tw-text-center">
|
|
{{.ProviderTitle}}
|
|
</div>
|
|
<div class="description tw-text-center tw-text-balance">
|
|
{{ctx.Locale.Tr (printf "repo.migrate.%s.description" .Name)}}
|
|
</div>
|
|
</div>
|
|
</a>
|
|
{{end}}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{template "base/footer" .}}
|