-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Labels
backendenhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed
Description
Feature details?
Currently, we manually have to update this map to introduce any new categories
CATEGORIES = {
"Python": "python",
"JavaScript": "javascript",
"C++": "cpp",
"C":"c",
"CSS":"css",
"Data Structures & Algorithms": "dsa",
"Machine Learning": "machine-learning",
"Deep Learning": "deep-learning",
"Computer Science": "computer-science",
"Computer Graphics": "computer-graphics",
"Git": "git",
"Android": "android",
"Surprise Me!": "miscellaneous",
}This can be automated by calling the GitHub API to find directories that contain the index.json file.
# get repo file paths
curl -H "Authorization: token YOUR_ACCESS_TOKEN" https://api.github.com/repos/OWNER/REPO/contents
# get paths inside a directory
curl -H "Authorization: token YOUR_ACCESS_TOKEN" https://api.github.com/repos/OWNER/REPO/contents/path/to/directory
The work will involve automatically calling the correct endpoints to dynamically generate resource categories.
Bonus points if you can do this asynchronoisly to reduce the latency!
Code of Conduct
- I agree to follow this project's Code of Conduct
Metadata
Metadata
Assignees
Labels
backendenhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed