Migration Api Changed #392
No reviewers
Labels
No Label
has/backport
has/pull
in progress
invalid
kind/breaking
kind/bug
kind/build
kind/deployment
kind/docs
kind/enhancement
kind/feature
kind/lint
kind/proposal
kind/question
kind/refactor
kind/security
kind/testing
kind/translation
kind/ui
need/backport
priority/critical
priority/low
priority/maybe
priority/medium
reviewed/duplicate
reviewed/invalid
reviewed/wontfix
skip-changelog
status/blocked
status/needs-feedback
status/needs-reviews
status/wip
upstream/gitea
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gitea/go-sdk#392
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "6543/go-sdk:migration-api-changed"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
We may want to either remove Gitea/Gogs, or add documentation that they are not actually fully supported services for migrations.
They can be cloned, however neither will transfer items.
@ -0,0 +76,4 @@
return fmt.Errorf("Description to long")
}
switch opt.Service {
case GitServiceGithub:
GitLab also has token support and so should probably prefer it.
@jolheiser this will force it too and fail with basicAuth !!!
@ -0,0 +78,4 @@
switch opt.Service {
case GitServiceGithub:
if len(opt.AuthToken) == 0 {
return fmt.Errorf("github require token authentification")
authentication
@jolheiser I'll coment out things until they are supported
and as lafriks wrote, we should have a try to switch to strig on the API
662b447403
to884f257508
blocked until https://github.com/go-gitea/gitea/pull/12672 got merged
Not a blocker, but I don't think we should be promoting a Gogs service since we don't actually support a "full" migration.
@ -0,0 +23,4 @@
// GitServiceGitlab represents a gitlab service
GitServiceGitlab GitServiceType = "gitlab"
// GitServiceGogs represents a gogs service
GitServiceGogs GitServiceType = "gogs"
Sorry, I know that this is accepted even in the API, but imo we shouldn't be promoting a service that doesn't actually exist.
Currently this will just fall through as we don't have a Gogs factory, essentially making this a plain git migration.
I'll comment it out until we have one
@jolheiser comment out unsupported things
I still see it in the diff, did you commit the change?
34b6b0bc71
tof4327b850a