Background
The main README.md lists 4 tracks with problem counts but uses static text. Dynamic badges would make the repo look more professional on GitHub.
Task
Create shields.io badges for each track that auto-display the problem count:
-
Count .md files in each track directory:
global-south-impact/ → 10 files
us-civic-tech/ → 10 files
india-impact/ → 5 files
rapid-prototype/ → 11 files
-
Add shields.io dynamic JSON badges to README.md using the GitHub API to count files
-
Example: https://img.shields.io/badge/dynamic/json?label=Global%20South&query=...&url=...
Hints
- Use GitHub's tree API to count files:
https://api.github.com/repos/AshayK003/hackathon-problem-statements/git/trees/master?recursive=1
- shields.io supports the
dynamic badge type
Expected output
A single PR updating README.md with 4 new badges inline with existing ones.
Skills needed
- Markdown
- Basic JSON/URL construction
Estimated effort: 1 hour
Background
The main
README.mdlists 4 tracks with problem counts but uses static text. Dynamic badges would make the repo look more professional on GitHub.Task
Create shields.io badges for each track that auto-display the problem count:
Count
.mdfiles in each track directory:global-south-impact/→ 10 filesus-civic-tech/→ 10 filesindia-impact/→ 5 filesrapid-prototype/→ 11 filesAdd shields.io dynamic JSON badges to
README.mdusing the GitHub API to count filesExample:
https://img.shields.io/badge/dynamic/json?label=Global%20South&query=...&url=...Hints
https://api.github.com/repos/AshayK003/hackathon-problem-statements/git/trees/master?recursive=1dynamicbadge typeExpected output
A single PR updating
README.mdwith 4 new badges inline with existing ones.Skills needed
Estimated effort: 1 hour