pwntester / octo.nvim

Edit and review GitHub issues and pull requests from the comfort of your favorite editor
MIT License
2.37k stars 127 forks source link

feat: projects v2 support #436

Closed milogert closed 8 months ago

milogert commented 11 months ago

Describe what this PR does / why we need it

This PR implements the projects v2 interface as well as the picker for fzf-lua.

Adds:

Does this pull request fix one issue?

Addresses https://github.com/pwntester/octo.nvim/discussions/414

Describe how you did it

Followed the pattern of the other cards command. As noted above I changed the interface for the new command slightly, but to something that made sense to me and how projects v2 flowed.

Describe how to verify it

Mess around with projects v2 inside Octo. Everything should work as expected.

Special notes for reviews

I added two small additions as riders:

These are tiny changes that are just QoL adds for fzf-lua.

Also I updated the README to account for some fzf-lua changes as well.

pwntester commented 11 months ago

Thanks for the PR, looks great! Will review ASAP

Cih2001 commented 10 months ago

Cant wait to see this merged guys, the only reason I have Telescope installed is Octo. Thanks for this.

milogert commented 10 months ago

@Cih2001 for what it's worth, fzf-lua is already supported in Octo.nvim. This PR extends that support (even beyond Telescope's support) with Projects V2 additions. The bulk of Octo works just fine though

Cih2001 commented 10 months ago

Oh I see, that's really missing in the documentations. Had to look at the config.lua file to guess that. Thanks for letting me know.

pwntester commented 8 months ago

@milogert sorry for the late review. Can you please rebase against master?

milogert commented 8 months ago

I believe I am.. Right? I might be missing something though. My GitHub ui says that I'm just 8 commits ahead of master and no commits behind it

pwntester commented 8 months ago

Oh, you are, sorry. It looks good to me, but can you please add placeholders for the missing pickers for telescope and vim-clap?

milogert commented 8 months ago

Yep, just pushed changes up over lunch :) Thanks for the eyes!

pwntester commented 8 months ago

Thanks you for the contribution!

tiev commented 8 months ago

Hello, I see this PR has already been reverted by https://github.com/pwntester/octo.nvim/pull/474 I guess because of the error about gh token not having the projects permission.

Just wanna share that I can overcome that. I manually created a token with the permission. Then gh auth login, and use the option to fill an existing token instead of auto generating.

So I think this feature should be updated to be auto-available when the token has the permission.

pwntester commented 8 months ago

Thanks @tiev a couple of alternatives are being discussed here, feel free to chime in, but the idea of reverting this PR is to avoid people not using projects v2 to have to upgrade their tokens.