Sha256: 4d8c044047a73bcc3e0ee31c7a15626b95a98eddf32a5fbb80f59fd3778c66f7
Contents?: true
Size: 787 Bytes
Versions: 3
Compression:
Stored size: 787 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 :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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
multi_repo-0.2.1 | scripts/update_milestone |
multi_repo-0.2.0 | scripts/update_milestone |
multi_repo-0.1.2 | scripts/update_milestone |