Neovim plugin for working with Github pull request comments
README.md

gh-pr-comments #

⚠️ Warning: This plugin is in active development.

Simple neovim plugin for working with comments on your local branch and GitHub PR.

Requirements #

  • GITHUB_TOKEN environment variable
  • gh CLI

TODO #

Development #

GitHub PR Comments Endpoint

Run tests #

Running tests requires either

  • [luarocks][luarocks]
  • or [busted][busted] and [nlua][nlua]

to be installed[1].

You can then run:

luarocks test --local
# or
busted

Or if you want to run a single test file:

luarocks test spec/path_to_file.lua --local
# or
busted spec/path_to_file.lua

If you see an error like module 'busted.runner' not found:

eval $(luarocks path --no-bin)

For this to work you need to have Lua 5.1 set as your default version for luarocks. If that's not the case you can pass --lua-version 5.1 to all the luarocks commands above.

rockspec-format: https://github.com/luarocks/luarocks/wiki/Rockspec-format luarocks: https://luarocks.org luarocks-api-key: https://luarocks.org/settings/api-keys gh-actions-secrets: https://docs.github.com/en/actions/security-guides/encrypted-secrets#creating-encrypted-secrets-for-a-repository busted: https://lunarmodules.github.io/busted/ nlua: https://github.com/mfussenegger/nlua use-this-template: https://github.com/new?template_name=nvim-lua-plugin-template&template_owner=nvim-lua


  1. The test suite assumes that nlua has been installed using luarocks into ~/.luarocks/bin/. ↩︎