私は(悲しげにコメントが含まれていません)CSVに私のGoogleのコードの問題をエクスポートし、その後、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 do |csv|
csv.each do |r|
# title, body, assignee, milestone, labels
body = {
:title => r['Summary'],
:body => "Issue Migrated from 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
は、あなたの使用のために適切な値を持つxxx
を交換してくださいまずテストレポで実行するようにしてください。
その後、Googleコードのすべての問題をgithub発行リストを指すコメントで閉じました。 GoogleコードのAdminメニューの詳細タブを使用して、Issuesタブをgithub issueリストに指し示すwikiページに置き換えました。