Skip to content

quantalphas/gitlabmvgitea

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gitlabmvgitea

A command line tool build with Golang to migrate a GitLab project to Gitea.

It uses the exposed API of both systems to migrate following data of a project:

  • All repo
  • All milestones
  • All labels
  • All issues

It skips creation if an item already exists.

Installation

> git clone https://github.com/quantalphas/gitlabmvgitea.git
> cd gitlabmvgitea
> go mod tidy
> go install

> whereis gitlabmvgitea
gitlabmvgitea: /go/bin/gitlabmvgitea

Installing the tool from source code needs to have a recent version of Golang installed.

Usage

change GiteaAdminUser = "root" to your Gitea admin username

gitlabmvgitea --gitlabserver https://gitlab.domain.com/ --gitlabtoken tokenA \
--giteaserver https://gitea.domain.com/ --giteatoken tokenB

Options

Migrate repo, labels, issues and milestones from GitLab to Gitea.

Usage: gitlabmvgitea --gitlabtoken GITLABTOKEN --gitlabproject GITLABPROJECT --giteatoken GITEATOKEN --giteaserver GITEASERVER

Options:
  --gitlabtoken GITLABTOKEN
                         token for GitLab API access
  --gitlabserver GITLABSERVER
                         GitLab server URL with a trailing slash
  --giteatoken GITEATOKEN
                         token for Gitea API access
  --giteaserver GITEASERVER
                         Gitea server URL
  --help, -h             display this help and exit

Others

I made sth change(gitlabmvgitea/go-sdk/gitea/client.go) in go-sdk.

About

golang tools for gitlab move to gitea

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages