Sha256: bd94e3633497df1cf01a0bb514df0ae0512a893d1d748f33c855cc568ccb6f54

Contents?: true

Size: 1.27 KB

Versions: 20

Compression:

Stored size: 1.27 KB

Contents

# frozen_string_literal: true

require "thor"

require_relative "compliance_fix"
require_relative "script"
require_relative "../../sub_command_base"

module Neetob
  class CLI
    module Github
      module MakePr
        class Commands < SubCommandBase
          class_option :apps,
            {
              type: :array, aliases: "-a", default: ["*"],
              desc: "Github app names. Can be matched using the '*' wildcard. Example: \"neeto*\" \"neeto-cal-web\""
            }

          desc "compliance-fix", "Create PRs for fixing neeto compliance in all products"
          def compliance_fix
            ComplianceFix.new(options[:apps], options[:sandbox]).run
          end

          desc "script", "Create PRs after running the given script for each product."
          option :path, type: :string, aliases: "-p",
            desc: "Path to UNIX executable script which will be run for each product", required: true
          option :title, type: :string, aliases: "-t", desc: "Title for the PR"
          option :branch, type: :string, aliases: "-b", desc: "Feature branch name for the PR"
          def script
            Script.new(options[:apps], options[:path], options[:title], options[:branch], options[:sandbox]).run
          end
        end
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
neetob-ud-1.0.59 lib/neetob/cli/github/make_pr/commands.rb
neetob-ud-0.2.8 lib/neetob/cli/github/make_pr/commands.rb
neetob-ud-0.2.6 lib/neetob/cli/github/make_pr/commands.rb
neetob-ud-0.2.4 lib/neetob/cli/github/make_pr/commands.rb
neetob-ud-0.2.3 lib/neetob/cli/github/make_pr/commands.rb
neetob-ud-0.2.2 lib/neetob/cli/github/make_pr/commands.rb
neetob-ud-0.2.1 lib/neetob/cli/github/make_pr/commands.rb
neetob-ud-0.2.0 lib/neetob/cli/github/make_pr/commands.rb
neetob-ud-0.1.3 lib/neetob/cli/github/make_pr/commands.rb
neetob-ud-0.1.2 lib/neetob/cli/github/make_pr/commands.rb
neetob-ud-0.1.1 lib/neetob/cli/github/make_pr/commands.rb
neetob-ud-0.1.0 lib/neetob/cli/github/make_pr/commands.rb
neetob-ud-0.2.14 lib/neetob/cli/github/make_pr/commands.rb
neetob-ud-0.2.13 lib/neetob/cli/github/make_pr/commands.rb
neetob-ud-0.2.11 lib/neetob/cli/github/make_pr/commands.rb
neetob-ud-0.2.9 lib/neetob/cli/github/make_pr/commands.rb
neetob-ud-0.2.5 lib/neetob/cli/github/make_pr/commands.rb
neetob-0.1.2 lib/neetob/cli/github/make_pr/commands.rb
neetob-0.1.1 lib/neetob/cli/github/make_pr/commands.rb
neetob-0.1.0 lib/neetob/cli/github/make_pr/commands.rb