CLI to migrate issues from zenhub to youtrack
- Clone this repo
- CD to repo directory
composer install
- Copy sample.env to .env or to ~/.zh2yt.env
- Edit values in new env file. Should be relatively self-explanatory.
- bin/z2y
- Run by itself to see list of commands
You will need both the YouTrack Project identifier (usually a short string of all capital letters) and the GithHub repo ID as an integer.
You may retrieve the GitHub repo ID by using the command:
./bin/z2y gh:repo:id {ORG}/{REPONAME}
For example ./bin/z2y gh:repo:id github/fetch
A few other helper commands are included in the CLI:
gh:issue:search
just a way to search issuesgh:repo:id
get a numeric id of repoyt:issue:get
Get youtrack issue by idyt:issue:github
Find youtrack issue(s) already linked to a github issueyt:project:list
Get youtrack projectszh:epic:list
List epics in ZenHub
To migrate issues, use the commands:
migrate:epics
migrates epics and their subtasksmigrate:by-tag
migrates issues with a specific tag