vim-gina icon indicating copy to clipboard operation
vim-gina copied to clipboard

add option to checkout a github PR locally

Open prabirshrestha opened this issue 6 years ago • 3 comments

One thing I do a lot and miss in gina is the capability to checkout a PR locally.

Currently I always need to do this where 100 is the github PR number.

git fetch origin pull/100/head:pr100
git checkout pr100

Would it be possible to automate this? Even better if github PRs could be shown as a list in gina something like :Gina pullrequests and then have an action to checkout.

prabirshrestha avatar Feb 10 '19 19:02 prabirshrestha

It's possible but I think it should be a separated plugin like gina-github.vim or whatever. Actually, Github integrations are features what I missed in gina.vim for while...

lambdalisue avatar Feb 12 '19 11:02 lambdalisue

I haven't started that because there is no asynchronous HTTP vital module yet... Maybe I should use an old synchronous one.

lambdalisue avatar Feb 12 '19 11:02 lambdalisue

https://github.com/mattn/webapi-vim. That one works for vim but not neovim. Uses vim's job api - https://github.com/mattn/webapi-vim/issues/29

prabirshrestha avatar Feb 16 '19 04:02 prabirshrestha