Sha256: 971f6095379a759b9bbd0bfe6447ee3f141565515680eeaad4bbda5ad8d78916
Contents?: true
Size: 1.33 KB
Versions: 3
Compression:
Stored size: 1.33 KB
Contents
# encoding: utf-8 module GithubCLI class Commands::Merging < Command namespace :merge option :base, :type => :string, :required => true, :desc => "The name of the base branch that the head will be merged into" option :head, :type => :string, :required => true, :desc => "The head to merge. This can be a branch name or a commit SHA1" option :message, :type => :string, :desc => "Commit message to use for the merge commit" desc 'perform <user> <repo>', 'Perform merge' long_desc <<-DESC Inputs base - Required String - The name of the base branch that the head will be merged into.\n head - Required String - The head to merge. This can be a branch name or a commit SHA1. \n commit_message - Optional String - Commit message to use for the merge commit. If omitted, a default message will be used.\n DESC def perform(user, repo) global_options = options.dup params = options[:params].dup params['base'] = options[:base] if options[:base] params['head'] = options[:head] if options[:head] params['commit_message'] = options[:message] if options[:message] Util.hash_without!(global_options, params.keys + ['params', 'commit_message']) Merging.merge user, repo, params, global_options end end # Merging end # GithubCLI
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
github_cli-0.6.2 | lib/github_cli/commands/merging.rb |
github_cli-0.6.1 | lib/github_cli/commands/merging.rb |
github_cli-0.6.0 | lib/github_cli/commands/merging.rb |