mirror of
https://github.com/open-webui/docs.git
synced 2026-07-20 07:04:31 -04:00
[PR #207] [MERGED] feat: add script for scanning for missing env vars in docs #309
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/open-webui/docs/pull/207
Author: @cheahjs
Created: 9/7/2024
Status: ✅ Merged
Merged: 9/24/2024
Merged by: @tjbck
Base:
main← Head:feat/env-var-checker📝 Commits (1)
cc3ce6bfeat: add script for scanning for missing env vars in docs📊 Changes
1 file changed (+114 additions, -0 deletions)
View changed files
➕
scripts/scan-missing-env-vars.py(+114 -0)📄 Description
Walks the AST for the backend code for calls to
os.environ/os.getenv, and compares it with what is currently documented.Run with
python3 scripts/scan-missing-env-vars.py <git_ref>, for examplepython3 scripts/scan-missing-env-vars.py v0.3.20Example output:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.