Sha256: 0fb2adbbb73a1124e64c9e5f9127d964a675bac697f5537ea0614f6f62a1498e
Contents?: true
Size: 798 Bytes
Versions: 5
Compression:
Stored size: 798 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 opt :tag, "The tag to destroy", :type => :string, :required => true MultiRepo::CLI.common_options(self, :except => :dry_run) end require "stringio" post_review = StringIO.new MultiRepo::CLI.each_repo(**opts) do |repo| unless repo.git.tag?(opts[:tag]) puts "!! Skipping because #{opts[:tag]} tag doesn't exist".yellow next end repo.git.client.tag("-d", opts[:tag]) post_review.puts("pushd #{repo.path} && git push origin :#{opts[:tag]} && popd") end puts puts "Run the following script to delete '#{opts[:tag]}' tag from all remote repos" puts puts post_review.string
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
multi_repo-0.2.1 | scripts/destroy_tag |
multi_repo-0.2.0 | scripts/destroy_tag |
multi_repo-0.1.2 | scripts/destroy_tag |
multi_repo-0.1.1 | scripts/destroy_tag |
multi_repo-0.1.0 | scripts/destroy_tag |