lib/jive/cli.rb in jive-0.4.3 vs lib/jive/cli.rb in jive-0.4.4

- old
+ new

@@ -73,10 +73,12 @@ .new(Pathname.pwd) .bootstrap(Jive.shell) end desc "pr URL", "pull request" - def pr(url) + def pr(url = Repo.current.canonical_url) + return say("Invalid url") && exit(1) unless url + pr = PullRequest.new(url) pr.edit(ENV["EDITOR"]) end desc "setup", "provide instructions to integrate into shell"