Create a pipeline that checks the health of climate tech repos on a daily schedule and updates their status in the database.
For each project in climate_projects, the pipeline should:
/repos/{owner}/{repo}) to fetch: stargazers_count, pushed_at, open_issues_countgood-first-issueCONTRIBUTING.md file exists (/repos/{owner}/{repo}/contents/CONTRIBUTING.md)Health score (0-100):
comments count as proxy.good-first-issue count > 0, 15 pts if CONTRIBUTING.md existsUpdate climate_projects with { health_score, stars, has_good_first_issues, last_commit_at, health_checked_at }.
Infrastructure:
/api/cron/health-check, daily at 02:00 UTC)CRON_SECRET header checkGITHUB_TOKEN env var (optional — degrades to 60 req/hr unauthenticated)Write integration tests with mocked GitHub API responses covering: healthy repo, stale repo, rate limited response, missing repo (404).
No contributions yet.