Sha256: 6f2d67b8bebf7191cf72b8d1ca2a04dc3de4c6cb86a97d2c40c3c0268e63cef7
Contents?: true
Size: 1014 Bytes
Versions: 3
Compression:
Stored size: 1014 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 "Create a pull request on all repos." 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
multi_repo-0.3.0 | scripts/pull_request_blaster_outer |
multi_repo-0.2.3 | scripts/pull_request_blaster_outer |
multi_repo-0.2.2 | scripts/pull_request_blaster_outer |