Skip to content

migrate github project issues,notes,milestones,labels to gitlab project

Notifications You must be signed in to change notification settings

steverweber/ghtogl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 

Repository files navigation

ghtogl

migrate github project to gitlab project (issues, notes, milestones, and labels)

Get your API tokens from:

license = http://opensource.org/licenses/MIT

Example:

python gtoh.py --github_project 'group/project' --github_api_token '8468e474c8bc65a0?????' --gitlab_api 'https://gitlab.localhost/api/v3' --gitlab_project 'group/project' --gitlab_api_token '2fEJ9AadkwU????' 
usage: ghtogl.py [-h] [--version] [--github_api GITHUB_API]
                 [--github_api_token GITHUB_API_TOKEN] --github_project
                 GITHUB_PROJECT --gitlab_api GITLAB_API --gitlab_api_token
                 GITLAB_API_TOKEN --gitlab_project GITLAB_PROJECT

Migrate issues, comments, labels, and milestones from github project
to a gitlab project

optional arguments:
  -h, --help            show this help message and exit
  --version             show program's version number and exit
  --github_api GITHUB_API
                        github api url: https://api.github.com
  --github_api_token GITHUB_API_TOKEN
                        api token, https://github.com/settings/applications
                        #personal-access-tokens
  --github_project GITHUB_PROJECT
                        github project path example: namespace/project
  --gitlab_api GITLAB_API
                        gitlab api url example:
                        https://gitlab.localhost.domain/api/v3
  --gitlab_api_token GITLAB_API_TOKEN
                        get your api token at
                        [https://gitlab.localhost.domain]/profile/account
  --gitlab_project GITLAB_PROJECT
                        gitlab project path example: namespace/project

Issue

If project in Gitlab has no "owner' you might need to first fork the project under your own user before using the script.

About

migrate github project issues,notes,milestones,labels to gitlab project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages