GitHub provides an API to get directory listings. (Thanks, ChatGTP for clearly demonstrating this.) Try for example:
curl https://api.github.com/repos/autoplot/dev/contents/bugs/2025
This returns a JSON listing of the files and folders within 2025 along with hashes.