{"id":1992,"date":"2013-02-07T17:23:49","date_gmt":"2013-02-07T15:23:49","guid":{"rendered":"http:\/\/planetozh.com\/blog\/?page_id=1992"},"modified":"2013-02-07T18:33:55","modified_gmt":"2013-02-07T16:33:55","slug":"google-issues-to-github-a-migration-script-in-php","status":"publish","type":"page","link":"https:\/\/planetozh.com\/blog\/my-projects\/google-issues-to-github-a-migration-script-in-php\/","title":{"rendered":"Google Issues To Github : a Migration Script in PHP"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/planetozh.com\/blog\/wp-content\/uploads\/2013\/02\/migrate.png\" alt=\"migrate weeeeeeee\" width=\"585\" height=\"153\" class=\"aligncenter size-full wp-image-2005\" srcset=\"https:\/\/planetozh.com\/blog\/wp-content\/uploads\/2013\/02\/migrate.png 585w, https:\/\/planetozh.com\/blog\/wp-content\/uploads\/2013\/02\/migrate-300x78.png 300w\" sizes=\"auto, (max-width: 585px) 100vw, 585px\" \/><\/p>\n<p>Google Issues to Github is a script to migrate Issues from a Google Code project to a Github project.<\/p>\n<h2>What it does<\/h2>\n<p>It will create a simple &quot;shadow issue&quot; in Github to mirror the original issue, containing the original description and pointing to the original issue on Google. It will not migrate comments and attachments.<\/p>\n<p>The idea is to have an exact replica in Github of what you have in Google (ie issue #43 in Google will be issue #43 on Github) so when you migrate you don&#39;t lose history and can still bark at users about not searching in resolved issues before filing new ones :)<\/p>\n<p>Example: this <a href=\"https:\/\/github.com\/YOURLS\/NotYOURLS\/issues?state=open\">Github project<\/a> has all the issues of this <a href=\"http:\/\/code.google.com\/p\/yourls\/issues\/list\">Google project<\/a>.<\/p>\n<h2>Features<\/h2>\n<ul>\n<li>It&#39;s written in PHP, customizable to make it work your way, commented enough to allow further hacking if needed<\/li>\n<li>It&#39;s a command line script. Run it in your shell, not in your browser.<\/li>\n<li>It handles deleted issues: if issue #43 is not found on Google, it will create a dummy issue on Github, to keep issue numbers in sync<\/li>\n<li>It&#39;s conservative and easy on the server: if an API requests fails (network hiccup, server load&#8230;), the script waits then retries XX times, where XX is configurable.<\/li>\n<li>It&#39;s super cool.<\/li>\n<\/ul>\n<h2>Download, Documentation, FAQ<\/h2>\n<p>It&#39;s all on Github: <a href=\"https:\/\/github.com\/ozh\/google-issues-to-github\">Google Issues to Github<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Google Issues to Github is a script to migrate Issues from a Google Code project to a Github project. What it does It will create a simple &quot;shadow issue&quot; in Github to mirror the original issue, containing the original description and pointing to the original issue on Google. It will not migrate comments and attachments. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":241,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1992","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/planetozh.com\/blog\/wp-json\/wp\/v2\/pages\/1992","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/planetozh.com\/blog\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/planetozh.com\/blog\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/planetozh.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/planetozh.com\/blog\/wp-json\/wp\/v2\/comments?post=1992"}],"version-history":[{"count":5,"href":"https:\/\/planetozh.com\/blog\/wp-json\/wp\/v2\/pages\/1992\/revisions"}],"predecessor-version":[{"id":2007,"href":"https:\/\/planetozh.com\/blog\/wp-json\/wp\/v2\/pages\/1992\/revisions\/2007"}],"up":[{"embeddable":true,"href":"https:\/\/planetozh.com\/blog\/wp-json\/wp\/v2\/pages\/241"}],"wp:attachment":[{"href":"https:\/\/planetozh.com\/blog\/wp-json\/wp\/v2\/media?parent=1992"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}