mirror of
https://github.com/go-gitea/gitea.git
synced 2026-11-02 13:44:16 +09:00
Adds migration from bitbucket.org as the Cloud variant of the Bitbucket entry, in the web UI and via `POST /repos/migrate` with `service=bitbucket`. It migrates the repository and pull requests with their comments and reviews. Bitbucket Cloud has no releases, and Atlassian removed its issues and wikis on 2026-08-20 (https://community.atlassian.com/forums/Bitbucket-articles/Announcing-sunset-of-Bitbucket-Issues-and-Wikis/ba-p/3193882). - Private repositories need an API or access token, which also raises the rate limit. - Rate-limited requests back off and retry, Bitbucket sends no `Retry-After`. - Tests replay recorded responses, set `BITBUCKET_READ_TOKEN` to re-record. Co-authored-by: silverwind <me@silverwind.io>
31 lines
1.0 KiB
Handlebars
31 lines
1.0 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="migrate-entries">
|
|
{{range .Services}}
|
|
<a class="ui basic button migrate-entry" href="{{AppSubUrl}}/repo/migrate?service_type={{.}}&org={{$.Org}}&mirror={{$.Mirror}}">
|
|
{{if eq .Name "github"}}
|
|
{{svg "octicon-mark-github" 184 "tw-p-4"}}
|
|
{{else if or (eq .Name "gitlab") (eq .Name "gitbucket") (eq .Name "forgejo") (eq .Name "bitbucket")}}
|
|
{{svg (printf "gitea-%s" .Name) 184 "tw-p-4"}}
|
|
{{else}}
|
|
{{svg (printf "gitea-%s" .Name) 184}}
|
|
{{end}}
|
|
<div class="migrate-entry-content">
|
|
<div class="migrate-entry-title">
|
|
{{.Title}}
|
|
</div>
|
|
<div class="tw-text-balance">
|
|
{{ctx.Locale.Tr (printf "repo.migrate.%s.description" .Name)}}
|
|
</div>
|
|
</div>
|
|
</a>
|
|
{{end}}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{template "base/footer" .}}
|