{"id":17476889,"url":"https://github.com/merodriguezblanco/panther","last_synced_at":"2026-05-08T00:33:54.952Z","repository":{"id":146576354,"uuid":"132055893","full_name":"merodriguezblanco/panther","owner":"merodriguezblanco","description":"Another ruby script to migrate issues, comments, labels and milestones from GitHub Enterprise to GitHub","archived":false,"fork":false,"pushed_at":"2018-05-03T22:28:27.000Z","size":5,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T11:45:36.906Z","etag":null,"topics":["git","github","github-api","github-enterprise","ruby","ruby-script"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/merodriguezblanco.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-03T22:25:49.000Z","updated_at":"2024-06-23T22:34:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"a33c68aa-509f-409e-a59c-eb45e5f46341","html_url":"https://github.com/merodriguezblanco/panther","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/merodriguezblanco/panther","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/merodriguezblanco%2Fpanther","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/merodriguezblanco%2Fpanther/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/merodriguezblanco%2Fpanther/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/merodriguezblanco%2Fpanther/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/merodriguezblanco","download_url":"https://codeload.github.com/merodriguezblanco/panther/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/merodriguezblanco%2Fpanther/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265518475,"owners_count":23780967,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["git","github","github-api","github-enterprise","ruby","ruby-script"],"created_at":"2024-10-18T19:43:01.494Z","updated_at":"2026-05-08T00:33:49.912Z","avatar_url":"https://github.com/merodriguezblanco.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Panther\nA Ruby script that migrates issues, comments, milestones and labels from **GitHub Enterprise** to **GitHub**.\n\nOne of my current tasks at work was to migrate some git repositories from GitHub Enterprise to GitHub. Since we don't count with access to the [ghe-migrator](https://blog.github.com/2016-05-16-migrate-your-repositories-using-ghe-migrator/) tool in GitHub, we had to come up with an automated script solution to do the repositories migration.\n\nHope somebody finds this script useful as well!\n\n## Usage\nYou will need to create a token in both GitHub accounts to run `panther`. You can do this in your GitHub profile settings page. For more information on this, please see [here](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/).\n\nBefore running panther, you will need to:\n\n```bash\n$ bundle install\n```\n\nYou can get some hints about how to run `panther` by running:\n\n```bash\n$ bundle exec ruby panther.rb -h\nUsage: panther.rb [arguments]\n        --labels                     Migrates labels\n        --milestones                 Migrates milestones\n        --issues                     Migrates issues\n        --comments                   Migrates comments\n        --source-token=TOKEN         Personal token for the GitHub where you are migrating from\n        --source-domain=DOMAIN       Domain for GitHub where you are migrating from\n        --source-organization=ORG    Organization in GitHub source where repository lives\n        --destination-token=TOKEN    Personal token for GitHub destination\n        --destination-organization=ORG\n                                     Organization in GitHub destination where repository will be migrated\n        --repository=REPOSITORY      Name of the repository to be migrated\n```\n\nFor instance, if you wanted to migrate a repository called `fried_chicken` from GitHub Enterprise to GitHub, you would run:\n\n```bash\n$ bundle exec ruby panther.rb --source-token=\u003cSOURCE-TOKEN\u003e\n                              --source-domain=enterprise.github.com\n                              --source-organization=Chicken\n                              --destination-token=\u003cDEST-TOKEN\u003e\n                              --destination-organization=Bird\n                              --repository=fried_chicken\n                              --labels --issues --comments --milestones\n```\n\nThe above command will migrate all issues, comments, labels and milestones from `https://enterprise.github.com/Chicken/fried_chicken` to `https://github.com/Bird/fried_chicken`.\n\nKeep in mind that the source repository name is expected to be the same in both GitHubs (this could be improved).\n\nSince `panther` is using your personal GitHub tokens for fetching and posting stuff, all issues and comments will have your username for the author. In order to know who the real author of the issues and comments were, `panther` adds a prefix template to each issue and comment that mentions the author's username and date in which those were posted.\n\n## Dependencies\n* Panther script makes use of [octokit](https://github.com/octokit/octokit.rb) to hit GitHub's Enterprise and GitHub's APIs.\n\n## Contributing\nWe welcome and appreciate [contributions](CONTRIBUTING.md)!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmerodriguezblanco%2Fpanther","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmerodriguezblanco%2Fpanther","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmerodriguezblanco%2Fpanther/lists"}