summaryrefslogtreecommitdiffstats
path: root/modules/structs/repo.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/structs/repo.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/structs/repo.go')
-rw-r--r--modules/structs/repo.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/structs/repo.go b/modules/structs/repo.go
index 2089f4d69c..313a982f43 100644
--- a/modules/structs/repo.go
+++ b/modules/structs/repo.go
@@ -248,6 +248,7 @@ const (
GiteaService // 3 gitea service
GitlabService // 4 gitlab service
GogsService // 5 gogs service
+ OneDevService // 6 onedev service
)
// Name represents the service type's name
@@ -267,6 +268,8 @@ func (gt GitServiceType) Title() string {
return "GitLab"
case GogsService:
return "Gogs"
+ case OneDevService:
+ return "OneDev"
case PlainGitService:
return "Git"
}
@@ -322,5 +325,6 @@ var (
GitlabService,
GiteaService,
GogsService,
+ OneDevService,
}
)