Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

add option to checkout a github PR locally #197

Open
prabirshrestha opened this issue Feb 10, 2019 · 3 comments
Open

add option to checkout a github PR locally #197

prabirshrestha opened this issue Feb 10, 2019 · 3 comments

Comments

@prabirshrestha
Copy link

prabirshrestha commented Feb 10, 2019

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.

@lambdalisue
Copy link
Owner

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
Copy link
Owner

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

@prabirshrestha
Copy link
Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants