fix: derive VERSION from APP_VERSION env var instead of hardcoding #6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/version-from-env"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
VERSION was hardcoded and kept getting stale across releases. Now reads
from APP_VERSION env var (set in k8s deployment to match the image tag),
falling back to "dev" for local development.
Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com
Automated review by pr-reviewer v0.8.0 | Safety Check | anthropic | tracking id
r-bdbf03-6ec2e5Status: ✅ Completed
Looking at this pull request, I can see it's a straightforward change to make the VERSION dynamic instead of hardcoded.
The changes are:
app_version: str = "dev"to the Settings class in config.pyVERSION = "0.8.0"toVERSION = settings.app_versionin main.pyThis looks like a clean improvement to avoid stale version numbers. The fallback to "dev" for local development is reasonable, and the approach of reading from an environment variable that matches the k8s image tag makes sense operationally.
No security issues, no accidentally committed files, and no obvious bugs in the logic.
Verdict: LGTM