lib/pt-flow/ui.rb in pt-flow-0.3.2 vs lib/pt-flow/ui.rb in pt-flow-0.4.0
- old
+ new
@@ -1,7 +1,6 @@
class PT::Flow::UI < PT::UI
-
def my_work #default command
help
end
def start
@@ -17,12 +16,12 @@
end
def finish
run("git push origin #{current_branch}")
task = PivotalTracker::Story.find(current_task_id, @project.id)
+ title = task.name.gsub('"',"'")
+ run("hub pull-request -b #{current_target} \"#{title}\"")
finish_task(task)
- pull_request_url = "#{github_page_url}/pull/new/#{current_target}...#{current_branch}?title=#{CGI::escape(task.name)} [##{task.id}]&body=#{task.url}"
- run("open '#{pull_request_url}'")
end
def deliver
run('git fetch')
run("git checkout #{current_target}")