Class: Fix

Inherits:
TaskWithCommit show all
Defined in:
lib/caperoma/models/tasks/fix.rb

Instance Method Summary collapse

Methods inherited from TaskWithCommit

#pause

Methods inherited from Task

#abort, abort_started, abort_started_without_time, #abort_without_time, finish_started, #jira_live_url, #pause, pause_started, #pivotal_url, #should_log_work?, status, #time_spent, #time_spent_in_minutes, #time_spent_so_far

Methods included from Git

#git_actual_rebase, #git_branch, #git_checkout, #git_commit, #git_current_branch, #git_last_commit_name, #git_pull_request, #git_push, #git_rebase_to_upstream

Instance Method Details

#descriptionObject



8
9
10
11
12
# File 'lib/caperoma/models/tasks/fix.rb', line 8

def description
  result = super
  last_commit = git_last_commit_name
  "#{result}\n(For: #{last_commit})"
end

#finish(comment) ⇒ Object



14
15
16
17
# File 'lib/caperoma/models/tasks/fix.rb', line 14

def finish(comment)
  git_rebase_to_upstream
  super
end