Class: Renuo::Cli::Commands::CreatePr
- Inherits:
-
Object
- Object
- Renuo::Cli::Commands::CreatePr
- Defined in:
- lib/renuo/cli/commands/create_pr.rb
Instance Method Summary collapse
Instance Method Details
#run(opts) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/renuo/cli/commands/create_pr.rb', line 17 def run(opts) command = [ "gh pr create", "--assignee @me", pr_title(opts), "--body \"#{pr_body(opts)}\"", "--web", ("--draft" if opts.draft) ].compact.join(" ") puts `#{command}` end |