Sha256: 845c31518f9bc8cc22e68b393ec2f7238a5b93650a14c3138d9013c357e13529
Contents?: true
Size: 616 Bytes
Versions: 3
Compression:
Stored size: 616 Bytes
Contents
module Cp8Cli module Commands class Submit def initialize(options = {}) @options = options end def run branch.push pull_request.open end private attr_reader :options def branch @_branch ||= Branch.current end def pull_request Github::PullRequest.new( from: branch, to: branch.target, title: PullRequestTitle.new(branch.story&.pr_title, prefixes: options.keys).run, body: PullRequestBody.new(branch.story).run ) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cp8_cli-6.0.1 | lib/cp8_cli/commands/submit.rb |
cp8_cli-6.0.0 | lib/cp8_cli/commands/submit.rb |
cp8_cli-5.0.0 | lib/cp8_cli/commands/submit.rb |