lib/pt-flow/ui.rb in pt-flow-2.2.0 vs lib/pt-flow/ui.rb in pt-flow-2.2.1
- old
+ new
@@ -89,12 +89,12 @@
task_title
end
def pull_request
if @params.include?('--draft')
- pr_url = `hub compare -u #{branch.target}...#{branch}`.chomp + "?expand=1&title=#{URI.escape(task_title)}"
- run "open #{pr_url}"
+ pr_url = repo.url + "/compare/#{branch.target}...#{branch}?expand=1&title=#{URI.escape(task_title)}"
+ run "open \"#{pr_url}\""
else
run("hub pull-request -b #{branch.target} -h #{repo.user}:#{branch} -m \"#{task_title}\"")
end
end
@@ -114,8 +114,7 @@
def error(*msg)
super
exit(false)
end
-
end
end