Pull Request File System. PR review comments as local files. Browse, filter, and script against GitHub PR review threads using familiar Unix tools.
uv tool install prfsprfs fetch pulls comments from a GitHub PR to {repo}/.prfs/{pr_number}/{thread_id}.md. One markdown file per thread with YAML frontmatter containing the file path and git patch.
gh auth login # gh is used under the hood
prfs fetch- One file per review thread
- Works offline after initial fetch
- Natively integrates with
rg,vim, etc.
Each thread file contains:
file: path and line number (src/utils.js:42). This format is supported by Vim jumps withgF.patch: the git diff where the comment thread was attached to.- Comments in markdown separated with
---.
Example comment file (.prfs/123/456.md):
---
file: src/utils.js:42
patch: |
diff --git a/src/utils.js b/src/utils.js
--- a/src/utils.js
+++ b/src/utils.js
@@ -40,7 +40,7 @@ function getUser() {
const db = connect();
- return db.query('users');
+ return await db.query('users');
}
---
The return type should be `Promise<User>` not `User`.
~@alice
---
Good catch. I'll fix it.
~@bob