Sha256: ded7ccdd7593c63e27b0a2a20cd35624276d2e4c8c3970981587d1464a3789a3
Contents?: true
Size: 729 Bytes
Versions: 20
Compression:
Stored size: 729 Bytes
Contents
# frozen_string_literal: true require_relative '../helpers/os_helper' require_relative '../helpers/services_workflow_helper' module Geet module Services # Open in the browser the PR for the current branch. # class OpenPr include Geet::Helpers::OsHelper include Geet::Helpers::ServicesWorkflowHelper DEFAULT_GIT_CLIENT = Geet::Utils::GitClient.new def initialize(repository, out: $stdout, git_client: DEFAULT_GIT_CLIENT) @repository = repository @out = out @git_client = git_client end def execute(delete_branch: false, **) pr = checked_find_branch_pr open_file_with_default_application(pr.link) pr end end end end
Version data entries
20 entries across 20 versions & 1 rubygems