Skip to content

Instantly share code, notes, and snippets.

View CGagnier's full-sized avatar
:shipit:
Working on Godot 🔥

Christophe Gagnier CGagnier

:shipit:
Working on Godot 🔥
View GitHub Profile
@CGagnier
CGagnier / copy_github_labels.rb
Last active May 28, 2020 19:03 — forked from tylerpearson/copy_github_labels.rb
Super simple script to copy Github tag labels from one repository to another. Uses the Octokit gem.
require 'octokit'
# Args should be key, from, to, delete before (optional)
if ( ARGV[0] == "help")
puts "Arguments are positional and should be: [KEY] [repo/from] [repo/to], [repo/to], ..."
exit
end
# https://help.github.com/articles/creating-an-access-token-for-command-line-use/
client = Octokit::Client.new(:access_token => ARGV[0] )