Sha256: 56036036d020a2e00718dae7de2121a552bfffd3f256704fbf15af70dc328c86
Contents?: true
Size: 1.49 KB
Versions: 3
Compression:
Stored size: 1.49 KB
Contents
# frozen_string_literal: true require 'eac_cli/core_ext' require 'eac_git/local' module Avm module Git module Issue class Complete require_sub __FILE__, include_modules: true enable_simple_cache enable_speaker BRANCH_NAME_ISSUE_ID_PATTERN = attr_reader :dir, :skip_validations def initialize(options) consumer = ::EacRubyUtils::OptionsConsumer.new(options) @dir, @skip_validations = consumer.consume_all(:dir, :skip_validations) validate_skip_validations consumer.validate end def start_banner validations_banner end def run return false unless valid? assert_tag push remove_local_branch clipboard_copy_tracker_message true end def issue_id branch ? issue_id_parser.parse(branch_name) : nil end # @return [EacRubyUtils::RegexpParser] def issue_id_parser /\A#{Regexp.quote('issue_')}(\d+)\z/.to_parser { |m| m[1].to_i } end private # @return [EacGit::Local] def eac_git_uncached ::EacGit::Local.new(dir) end def git_execute(args, exit_outputs = {}) r = launcher_git.execute!(args, exit_outputs: exit_outputs) r.is_a?(String) ? r.strip : r end def launcher_git_uncached ::Avm::Git::Launcher::Base.new(dir) end end end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
eac_tools-0.86.3 | sub/avm-git/lib/avm/git/issue/complete.rb |
avm-git-0.15.0 | lib/avm/git/issue/complete.rb |
eac_tools-0.86.2 | sub/avm-git/lib/avm/git/issue/complete.rb |