refactor(projects): build the projects list on the octokit SDK

Replace hand-rolled REST paging, GraphQL cursor loops and header plumbing with
octokit, which also brings request retry and rate-limit backoff. Introduces the
repo's first package.json, lockfile and ESLint flat config; the Hugo site build
itself still needs no Node step.

Output verified against the previous implementation: identical counts and rows
apart from live star drift on four upstream repos.
This commit is contained in:
tiennm99 committed 2026-09-18 12:28:11 +07:00
1 parent f0b6b4904d
commit a0de52c877
8 files changed
+1742 -91

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
{
"name": "blog",
"version": "0.0.0",
"private": true,
"description": "Tooling for miti99.com — the Hugo site itself needs no Node build step.",
"type": "module",
"engines": {
"node": ">=24"
},
"scripts": {
"lint": "eslint .",
"projects:refresh": "node .github/scripts/update-projects-list.mjs"
},
"dependencies": {
"octokit": "^5.0.5"
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"eslint": "^10.10.0"
}
}