Sha256: 8faf38f92bab005ff8fa245e799d44a212ed6420ac9896ae3f2926bfc9e4929f

Contents?: true

Size: 1.11 KB

Versions: 2

Compression:

Stored size: 1.11 KB

Contents

module Papa
  module CLI
    class Release < Thor
      desc 'start', 'Start a new release branch'
      option :version, aliases: '-v', required: true
      def start
        version = options[:version]

        require 'papa/task/release/start'
        Task::Release::Start.new(version).run
      end

      desc 'add', 'Add feature branches to a release branch'
      option :version, aliases: '-v', required: true
      option :feature_branches, aliases: '-b', type: :array
      def add
        version = options[:version]
        feature_branches = options[:feature_branches] || []

        require 'papa/task/release/add'
        Task::Release::Add.new(version, feature_branches).run
      end

      desc 'finish', 'Merge the release branch to master and develop'
      option :version, aliases: '-v', required: true
      option :additional_branches, aliases: '-b', type: :array
      def finish
        version = options[:version]
        additional_branches = options[:additional_branches]

        require 'papa/task/release/finish'
        Task::Release::Finish.new(version, additional_branches).run
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
papa-1.2.0 lib/papa/cli/release.rb
papa-1.1.0 lib/papa/cli/release.rb