Skip to content

Add .env.example, expand dev guide, add env var drift check#9

Merged
MinecraftFuns merged 2 commits intomainfrom
copilot/improve-onboarding-documentation
Feb 28, 2026
Merged

Add .env.example, expand dev guide, add env var drift check#9
MinecraftFuns merged 2 commits intomainfrom
copilot/improve-onboarding-documentation

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 27, 2026

New contributors had no quick-start env var template and no mechanism to detect when env vars are added to code without updating docs.

Changes

  • .env.example — All 19 env vars from cmd/PromptPipe/main.go with defaults and grouping. Copy-and-go for local dev.
  • docs/development.md — Expanded with: configure step referencing .env.example, docker-compose usage, all Makefile targets, health check verification, make check-docs for drift detection.
  • docs/configuration.md — Reference to .env.example.
  • scripts/check-env-docs.sh + Makefile check-docs target — Drift guard that extracts env var names from main.go (via os.Getenv, ParseBoolEnv, etc.) and verifies each appears in both .env.example and docs/configuration.md.

Drift check

make check-docs
# Env vars found in cmd/PromptPipe/main.go:
# API_ADDR, AUTO_ENROLL_NEW_USERS, ... (19 total)
# ✅ All environment variables are documented.

Fails loud if someone adds a new env var without updating docs.


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

…heck

- Create .env.example with all 19 env vars and defaults from main.go
- Expand docs/development.md with configure, docker-compose, Makefile targets
- Add scripts/check-env-docs.sh to detect env var documentation drift
- Add make check-docs target
- Reference .env.example from docs/configuration.md

Co-authored-by: MinecraftFuns <25814618+MinecraftFuns@users.noreply.github.com>
Copilot AI changed the title [WIP] Improve onboarding documentation for contributors Add .env.example, expand dev guide, add env var drift check Feb 28, 2026
@MinecraftFuns MinecraftFuns marked this pull request as ready for review February 28, 2026 00:09
@MinecraftFuns MinecraftFuns merged commit c1e920f into main Feb 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants