-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support to migrate from gogs #14342
Conversation
f8635eb is a refactor and can be moved into next pull if it makes this pull hard to review or block it ... |
de3955e
to
24230d4
Compare
24230d4
to
7518582
Compare
|
Signed-off-by: Andrew Thornton <art27@cantab.net>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving but we need the following extensions:
- We need to get pulls migrated too.
- We need to allow server managers to decide whether or not to enable all the different types of migrator. .
|
||
// IsErrNotSupported checks if an error is an ErrNotSupported | ||
func IsErrNotSupported(err error) bool { | ||
_, ok := err.(ErrNotSupported) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems incorrect here, because the NullDownloader code returns pointer: return nil, &ErrNotSupported{}
Or here is correct but NullDownloader does wrong 😂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add support to migrate gogs: