lib/pt-flow/ui.rb in pt-flow-2.0.0 vs lib/pt-flow/ui.rb in pt-flow-2.1.0
- old
+ new
@@ -82,10 +82,12 @@
def current_task
PivotalTracker::Story.find(branch.task_id, @project.id)
end
def task_title
- current_task.name.gsub('"',"'") + " [Delivers ##{current_task.id}]"
+ task_title = current_task.name.gsub('"',"'") + " [Delivers ##{current_task.id}]"
+ task_title = 'Bugfix: ' + task_title if current_task.story_type == 'bug'
+ task_title
end
def deliver!
finished_branch = branch
title = task_title