Skip to content
RAG Repo

GitHub Public Repositories (GH Archive / GHTorrent)

GH Archive records every public event on GitHub, such as pushes, forks, issues, and pull requests, and packages them into hourly archives you can download as JSON. It goes back to 2011 and is often loaded into BigQuery for large queries across the whole timeline.

GHTorrent (https://ghtorrent.org) takes a different angle, providing a relational mirror of GitHub's metadata: users, repositories, commits, issues, and the links between them. It is handy when you want to query relationships rather than replay a stream of events.

For RAG, these are less about raw code and more about the conversation around it. Issue threads, pull request discussions, and commit messages give you natural language context that pairs well with a code corpus. Note the content sits under each repository's own licence, and use is subject to GitHub's terms of service.

githubevent-dataissuespull-requestsmetadatamining

Related sources