topaxi / gh-actions.nvim

See status of workflows and dispatch runs directly in neovim
116 stars 4 forks source link

Trying to access parent directories too hard #11

Open utensil opened 1 week ago

utensil commented 1 week ago

So when I'm working on a project with Github workflow, gh-actions.nvim will be able to determine the repo and the workflow file and act accordingly.

But if I open a file outside the repo in the same nvim instance, e.g. ~/.zshrc, gh-actions.nvim seems to be trying to locate workflow file from that file's parent directories, and triggers multiple file access permission requests (which I didn't grant) so I noticed.

topaxi commented 1 week ago

Good catch, haven't thought about this use-case, as I usually start a neovim instance per project. I'll try to look into it if I find some time to do so.

Otherwise very happy to accept a PR which addresses this.

utensil commented 1 week ago

Thanks! Sorry, I'm still not very familiar with nvim plugin development, I'll see if I can figure out something.