Sha256: 9f4fb9d7300240769e5e0857b66b50a3a8fe16e49eefc376b919590d06e58772
Contents?: true
Size: 964 Bytes
Versions: 5
Compression:
Stored size: 964 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 :base, "The target branch for the changes.", :type => :string, :required => true opt :head, "The name of the branch to create on your fork.", :type => :string, :required => true opt :script, "The path to the script that will update the desired files.", :type => :string, :required => true opt :message, "The commit message for this change.", :type => :string, :required => true opt :title, "The PR title for this change. (default is --message)", :type => :string MultiRepo::CLI.common_options(self) end results = {} MultiRepo::CLI.each_repo(**opts) do |repo| results[repo.name] = MultiRepo::Helpers::PullRequestBlasterOuter.new(repo, **opts).blast end pp results
Version data entries
5 entries across 5 versions & 1 rubygems