Sha256: 27831ce22f0076214367a37d986a4f5268ce3535eaa301d9b2bb0a806c47ced0
Contents?: true
Size: 666 Bytes
Versions: 6
Compression:
Stored size: 666 Bytes
Contents
#!/usr/bin/env ruby require "bundler/inline" gemfile do source "https://rubygems.org" gem "multi_repo", require: "multi_repo/cli", path: File.expand_path("..", __dir__) end opts = Optimist.options do synopsis "Rename labels on all GitHub repos." opt :old, "The old label names.", :type => :strings, :required => true opt :new, "The new label names.", :type => :strings, :required => true MultiRepo::CLI.common_options(self) end rename_hash = opts[:old].zip(opts[:new]).to_h puts "Renaming: #{rename_hash.pretty_inspect}" puts MultiRepo::CLI.each_repo(**opts) do |repo| MultiRepo::Helpers::RenameLabels.new(repo.name, rename_hash, **opts).run end
Version data entries
6 entries across 6 versions & 1 rubygems