You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
API reports version 1.1.0 while the package is 1.2.0: read it from package metadata #199
The package is version 1.2.0 (pyproject.toml), but the FastAPI app is created with a hard-coded version="1.1.0" (api/server.py). /docs, /openapi.json and anything that reads the API version (including Postman imports) report the wrong version, and this will drift again on every release.
Fix
Read the version once from package metadata (importlib.metadata.version("devops-ai-agent")), falling back to the pyproject.toml value when running from a source checkout, and use it for FastAPI(version=…).
Return it from GET /health as "version" so operators can see what's deployed.
Add a test that app.version matches pyproject.toml.
Good first issue: small, self-contained, with a clear test.
Activity