HAL links
OptionalcontentBase64-encoded file content.
Only present for files when type is 'file'.
Decode with Buffer.from(content, 'base64').toString() or atob(content).
URL to the raw file content
OptionalencodingContent encoding (only for files — always 'base64')
URL to this file on GitHub
Entry name (filename or directory name)
Path from repository root
Blob SHA
File size in bytes
Entry type
API URL to this content entry
Represents a file or directory entry in a GitHub repository.
See
https://docs.github.com/en/rest/repos/contents#get-repository-content