Sha256: 73019eb7cb669f0f1be5f700ff6ada693d467aaa05ebce1dc842157f67c965eb
Contents?: true
Size: 859 Bytes
Versions: 6
Compression:
Stored size: 859 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, update, or close a milestone in all GitHub repos." opt :title, "The milestone title.", :type => :string, :required => true opt :due_on, "The due date.", :type => :string opt :close, "Whether to close the milestone.", :default => false MultiRepo::CLI.common_options(self) end Optimist.die(:due_on, "is required") if !opts[:close] && !opts[:due_on] Optimist.die(:due_on, "must be a date format") if opts[:due_on] && !MultiRepo::Service::Github.valid_milestone_date?(opts[:due_on]) MultiRepo::CLI.each_repo(**opts) do |repo| MultiRepo::Helpers::UpdateMilestone.new(repo.name, **opts).run end
Version data entries
6 entries across 6 versions & 1 rubygems