How do I export issues from a Google Code project to Github? -


i'm trying move project google code github, , can't find way migrate issue tickets.

i found https://github.com/arthur-debert/google-code-issues-migrator appears top hit in google search "migrate issues google code github", ever when attempt use is 404.

it appears can export google code tickets csv, a) don't see way import csv github, , b) seems barest data each ticket.

is there way migrate issues google code github?

i exported google code issues csv (which sadly not include comments), , used following script import them github:

#!/usr/bin/env ruby  # based on https://gist.github.com/visnup/1117145  require 'rubygems' require 'fastercsv' require 'httparty' require 'json'  github_user = 'xxx' github_repo = 'xxx' gcode_repo = 'xxx'  class github   include httparty   base_uri 'https://api.github.com'   basic_auth "xxx", "xxx" end  fastercsv.open argv.shift, :headers => true |csv|   csv.each |r|     # title, body, assignee, milestone, labels     body = {       :title => r['summary'],       :body => "issue migrated http://code.google.com/p/#{gcode_repo}/issues/detail?id=#{r['id']}",       :labels => [ "gcode"]     }     issue = github.post "/repos/#{github_user}/#{github_repo}/issues", :body => json.generate(body)     p issue   end end 

replace xxx appropriate values usage, , make sure run on test repo first.

i closed issues in google code comment pointing github issue list. using advanced tab of admin menu in google code, replaced issues tab wiki page pointed people github issue list.


Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -