Skip to content

Instantly share code, notes, and snippets.

View IliaFeldgun's full-sized avatar
🐪

IliaFeldgun

🐪
  • Zadara
View GitHub Profile
@MichaelCurrin
MichaelCurrin / README.md
Last active July 24, 2024 05:21
GitHub GraphQL - Get files in a repository

Get GitHub Files

Get the metadata and content of all files in a given GitHub repo using the GraphQL API

You might want to get a tree summary of files in a repo without downloading the repo, or maybe you want to lookup the contents of a file again without download the whole repo.

The approach here is to query data from GitHub using the Github V4 GraphQL API.

About the query