lib/pt-flow/ui.rb in pt-flow-0.3.0 vs lib/pt-flow/ui.rb in pt-flow-0.3.1
- old
+ new
@@ -18,10 +18,10 @@
def finish
run("git push origin #{current_branch}")
task = PivotalTracker::Story.find(current_task_id, @project.id)
finish_task(task)
- pull_request_url = "#{github_page_url}/pull/new/#{current_target}...#{current_branch}?title=#{task.name} [##{task.id}]&body=#{task.url}"
+ 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')