fetch-pr-corpus
Installation
SKILL.md
What it does
Runs the OCaml fetcher + filter in this skill directory:
bin/fetch.ml— fetches (via curl against the GitHub REST/GraphQL API,gh auth token):- all merged PRs →
merged_prs.json - all inline review comments →
review_comments.json - PR conversation comments + review bodies via GraphQL (connection pagination) →
pr_conversations.json
- all merged PRs →
bin/filter.ml— keeps only comments by human authors on merged PRs, drops pure acknowledgements ("LGTM", "Done", "Fixed") and empty bodies →corpus.jsonlwith one{kind, pr, author, file, line, created_at, body}per line.
Both steps are idempotent/resumable: existing output files are not re-fetched.
How to run
Requires: gh authenticated (gh auth status), OCaml with yojson (opam), dune, curl.