Class: GitScf::Review

Inherits:
Object
  • Object
show all
Defined in:
lib/git_scf/subcommands/review.rb

Instance Method Summary collapse

Constructor Details

#initialize(ticket) ⇒ Review

Returns a new instance of Review.



4
5
6
# File 'lib/git_scf/subcommands/review.rb', line 4

def initialize(ticket)
  @ticket = ticket
end

Instance Method Details

#executeObject



8
9
10
11
12
13
# File 'lib/git_scf/subcommands/review.rb', line 8

def execute
  `git commit --allow-empty --all -m "#{@ticket.id} #review (jira status update)"`
  `git push`
  `hub pull-request "Addresses #{@ticket.id} #{@ticket.summary.gsub('"','')} please review." -b seeclickfix:develop -h seeclickfix:#{@ticket.branch_name}| pbcopy`
  puts "The code-review URL is in your clipboard."
end