feat(scripts): generate self-host env reference#2596
Conversation
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-02 23:22:32 UTC
⏸️ Suggested Action - Manual Review
Review summary Nits — 6 non-blocking
Review context
Contributor next steps
Signal definitions
🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2596 +/- ##
=======================================
Coverage 96.07% 96.07%
=======================================
Files 235 235
Lines 26353 26353
Branches 9559 9559
=======================================
Hits 25318 25318
Misses 425 425
Partials 610 610 🚀 New features to boost your workflow:
|
45b8c4f to
1c3270a
Compare
1c3270a to
f63dbb5
Compare
Summary
process.env.NAMEreads in self-host code.--checkbehavior.What changed
scripts/gen-selfhost-env-reference.mjswith a typed companion declaration.apps/gittensory-ui/src/lib/selfhost-env-reference.tswith sorted env names and first source references only.selfhost:env-referenceandselfhost:env-reference:check, with the check wired intotest:ci.Why
Operators need a stable self-host env-var reference that cannot drift from source reads or expose example secret values.
Closes #2081
Validation
npx vitest run test/unit/selfhost-env-reference-script.test.tsnpm run selfhost:env-reference:checknpm run typechecknpm run ui:typechecknpm run ui:lintnpm run test:cinpm audit --audit-level=moderate