topaxi / pipeline.nvim

See status of ci/cd pipeline runs directly in neovim. Currently supports GitHub Actions and GitLab CI.
137 stars 5 forks source link

Trying to access parent directories too hard #11

Closed utensil closed 1 week ago

utensil commented 1 month 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 month 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 month ago

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

topaxi commented 1 week ago

There was rework on how this plugins detects github action workflows. I hope this also fixed this issue here. Let me know if this still happens and we reopen this issue.