summaryrefslogtreecommitdiffstats
path: root/modules/convert/utils.go
diff options
context:
space:
mode:
authorKN4CK3R <admin@oldschoolhack.me>2021-08-22 00:47:45 +0200
committerGitHub <noreply@github.com>2021-08-22 00:47:45 +0200
commitcee5f7c5e2bfe3132d7089a6bffc1a4bfc392e21 (patch)
tree41cf982a5b7a759645238fa7a99446e09761d359 /modules/convert/utils.go
parent2d1935acc7b2a6ecc797346625b80caa7e0b5787 (diff)
downloadgitea-cee5f7c5e2bfe3132d7089a6bffc1a4bfc392e21.tar.gz
gitea-cee5f7c5e2bfe3132d7089a6bffc1a4bfc392e21.zip
Add migrate from OneDev (#16356)
* Use context to simplify logic. * Added migration from OneDev. This PR adds [OneDev](https://code.onedev.io/) as migration source. Supported: - [x] Milestones - [x] Issues - [x] Pull Requests - [x] Comments - [x] Reviews - [x] Labels
Diffstat (limited to 'modules/convert/utils.go')
-rw-r--r--modules/convert/utils.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/convert/utils.go b/modules/convert/utils.go
index 69de306689..a0463d7b10 100644
--- a/modules/convert/utils.go
+++ b/modules/convert/utils.go
@@ -33,6 +33,8 @@ func ToGitServiceType(value string) structs.GitServiceType {
return structs.GitlabService
case "gogs":
return structs.GogsService
+ case "onedev":
+ return structs.OneDevService
default:
return structs.PlainGitService
}