feat(webui): show commit and prefill bug report diagnostics (#6080)
* feat(webui): show gateway commit in About settings * feat(webui): prefill revision in bug reports * fix(webui): use parentheses for commit details * feat(webui): prefill gateway diagnostics in bug reports * docs: remove About settings explanation * fix(webui): prefill dedicated issue diagnostic fields * fix(docker): include revision helper in dependency build layer
This commit is contained in:
1 parent
42f06ab1dc
commit
b0d28af321
12 files changed
+274
-56
No files matched your search
@@ -58,6 +58,14 @@ class WebUIBuildHook(BuildHookInterface):
|
||||
)
|
||||
return
|
||||
|
||||
from nanobot.build_info import read_commit
|
||||
|
||||
commit = read_commit(root)
|
||||
if commit:
|
||||
commit_file = root / "nanobot" / "_build_commit.txt"
|
||||
commit_file.write_text(commit + "\n", encoding="utf-8")
|
||||
build_data.setdefault("force_include", {})[str(commit_file)] = "nanobot/_build_commit.txt"
|
||||
|
||||
if os.environ.get("NANOBOT_SKIP_WEBUI_BUILD") == "1":
|
||||
self.app.display_info("[webui-build] skipped via NANOBOT_SKIP_WEBUI_BUILD=1")
|
||||
return
|
||||
|
||||
Reference in new issue
Block a user