Sha256: 3d45d91726d32dd4e04c989958faf202a6180c4563f80b2c262fa96d313fb415
Contents?: true
Size: 872 Bytes
Versions: 1
Compression:
Stored size: 872 Bytes
Contents
#!/usr/bin/env ruby require "gitlabci/bundle/update/mr" require "optparse" opt = OptionParser.new opt.version = Gitlabci::Bundle::Update::Mr::VERSION author_email = `git config user.email`.strip author_name = `git config user.name`.strip allow_dup_mr = false mr_labels = [] opt.on("--email EMAIL", "git email address (default. `git config user.email`)") { |v| author_email = v } opt.on("--user USER", "git username (default. `git config user.name`)") { |v| author_name = v } opt.on("-d", "--duplicate", "Make MR even if it has already existed") { |v| allow_dup_mr = v } opt.on("-l", "--labels 'In Review, Update'", Array, "Add labels to the MR") { |v| mr_labels = v.map(&:strip) } opt.parse!(ARGV) client = Gitlabci::Bundle::Update::Mr::Client.new(author_email: author_email, author_name: author_name) client.perform(allow_dup_mr: allow_dup_mr, mr_labels: mr_labels)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gitlabci-bundle-update-mr-0.1.0 | exe/gitlabci-bundle-update-mr |