pwntester / octo.nvim

Edit and review GitHub issues and pull requests from the comfort of your favorite editor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Open PR of currently checked out branch

GuillaumeLagrange opened this issue · comments

Issue Description

Type: feature request

Describe what happened (or what feature you want)

I would love a way to go to the PR buffer of the current branch without having to go through the pr list, since I work in large repos with a lot of opened PRs, and most of the time I am interested in the PR of an already checked out branch.

Ideally, Octo review start/resume when not inside a PR buffer would get the current branch, use the cli to find a matching PR, and then act as if the PR was selected through PR list. If there is no PR, it would throw the existing error of "Not in an Oct PR buffer/No PR existing".

If that complicates things to much, we could add a dedicated command like :Octo pr current or anything with a better name.

Anything else we need to know?

#212 looked like it would implement exactly this, but the comments on the PR seems to say that is not the case.

What do you think ?