{"id":50472455,"url":"https://github.com/statiolake/gh-pr-comments.nvim","last_synced_at":"2026-06-01T11:03:43.325Z","repository":{"id":349817504,"uuid":"1204046226","full_name":"statiolake/gh-pr-comments.nvim","owner":"statiolake","description":null,"archived":false,"fork":false,"pushed_at":"2026-04-07T17:13:06.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-04-07T18:27:47.568Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/statiolake.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-07T16:31:16.000Z","updated_at":"2026-04-07T17:13:12.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/statiolake/gh-pr-comments.nvim","commit_stats":null,"previous_names":["statiolake/gh-pr-comments.nvim"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/statiolake/gh-pr-comments.nvim","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statiolake%2Fgh-pr-comments.nvim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statiolake%2Fgh-pr-comments.nvim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statiolake%2Fgh-pr-comments.nvim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statiolake%2Fgh-pr-comments.nvim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/statiolake","download_url":"https://codeload.github.com/statiolake/gh-pr-comments.nvim/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statiolake%2Fgh-pr-comments.nvim/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33771630,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-01T02:00:06.963Z","response_time":115,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-01T11:03:43.249Z","updated_at":"2026-06-01T11:03:43.319Z","avatar_url":"https://github.com/statiolake.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gh-pr-comments.nvim\n\nSmall Neovim plugin for reading and editing GitHub issue comments and pull request review comments through `gh`.\n\n## Scope\n\n- `:GhComment [number]` opens the current pull request, or the specified pull request or issue, in a markdown-like buffer.\n- Saving the buffer parses the edited document and syncs updates through `gh api`.\n- Existing items are identified by visible labels such as `@user comment#123` or `@user review#456 [APPROVED]`.\n- Pull request and issue bodies are editable from the `## Description` section when the current user is the author.\n- Review threads are shown under `## Reviews`.\n- Review comments can be exported to quickfix through a Lua API.\n\nThis plugin is intentionally small. It does not try to provide a full review UI, diff viewer, extmarks, or conceal-based decoration.\n\n## Requirements\n\n- Neovim with `vim.system` and `vim.json`\n- Authenticated `gh` CLI\n\n## Installation\n\nWith `lazy.nvim`:\n\n```lua\nrequire(\"lazy\").setup({\n  {\n    \"statiolake/gh-pr-comments.nvim\",\n  },\n})\n```\n\nFor local development:\n\n```lua\nrequire(\"lazy\").setup({\n  {\n    dir = \"/absolute/path/to/gh-pr-comments.nvim\",\n    name = \"gh-pr-comments.nvim\",\n  },\n})\n```\n\n## Usage\n\nOpen the current pull request:\n\n```vim\n:GhComment\n```\n\nOpen a specific issue or pull request:\n\n```vim\n:GhComment 123\n```\n\nThe rendered document uses this structure:\n\n- `## Description`: issue or pull request body\n- `## Comments`: top-level timeline comments\n- `## Reviews`: file/line review threads\n- Rendered review thread headings use `path:line` so they work well with `gf`.\n- Existing review thread headings also include `thread#...`; adding or removing `[RESOLVED]` on that heading toggles the thread state on save.\n- Fold markers are emitted as HTML comments, so the rendered buffer stays valid Markdown.\n\nBodies may be written either as plain text or as fenced blocks. After a successful save, the buffer is re-rendered into the canonical fenced form.\n\nExample:\n\n````markdown\n# Pull Request #123: Example\n\n## Description\n\n```comment\nBody text\n```\n\n## Comments\n\n@user comment#123\n```comment\nExisting issue comment\n```\n\n---\n\n```comment\nNew top-level comment\n```\n\n## Reviews\n\n### path/to/file.ts:10 thread#PRRT_example [RESOLVED]\n\n@reviewer comment#456\n```comment\nExisting review comment\n```\n\n---\n\nPlain-text reply without an explicit fence\n````\n\n## Save Behavior\n\n- Parse errors stop sync immediately.\n- Non-editable existing items are skipped and restored on re-render.\n- Other API errors are reported and the failed edited text is kept in the re-rendered buffer.\n- Updated IDs, skipped IDs, and failed IDs are reported with `vim.notify()`.\n\n## Supported Edits\n\n- Edit the issue or pull request body\n- Edit an existing issue comment\n- Edit an existing review comment that belongs to the current user\n- Add a new top-level timeline comment under `## Comments`\n- Add a new review thread by appending a `### https://github.com/...` heading and body under `## Reviews`\n- Add a new reply inside an existing review thread, with or without an `@name` line\n\n## Quickfix API\n\n```lua\nlocal items = require(\"gh_pr_comments\").review_comment_qf_items({\n  number = 123,\n})\n\nvim.fn.setqflist({}, \" \", {\n  title = \"PR review comments\",\n  items = items,\n})\n\nvim.cmd.copen()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstatiolake%2Fgh-pr-comments.nvim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstatiolake%2Fgh-pr-comments.nvim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstatiolake%2Fgh-pr-comments.nvim/lists"}