From d1f050bd9869f117a51dabd22946acb1175d0337 Mon Sep 17 00:00:00 2001 From: Romuald Lemesle Date: Mon, 9 Nov 2026 18:24:18 +0100 Subject: [PATCH] feat(injector): send the build commit when an injector registers (#379) Co-Authored-By: Claude Opus 5.5 --- pyoaev/apis/injector.py | 1 + pyoaev/helpers.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/pyoaev/apis/injector.py b/pyoaev/apis/injector.py index c6ea0d8d..c7d33649 100644 --- a/pyoaev/apis/injector.py +++ b/pyoaev/apis/injector.py @@ -26,5 +26,6 @@ class InjectorManager(GetMixin, ListMixin, CreateMixin, UpdateMixin, RESTManager # connector source code (not user config). The platform attributes # every contract of this injector to an organization of this name. "injector_author", + "injector_commit", ), ) diff --git a/pyoaev/helpers.py b/pyoaev/helpers.py index 6867ba32..d018c7b4 100644 --- a/pyoaev/helpers.py +++ b/pyoaev/helpers.py @@ -342,6 +342,8 @@ def __init__(self, config: OpenAEVConfigHelper, icon) -> None: ), # Publisher/author of the injector's contracts (source-declared). "injector_author": config.get_conf("injector_author", default=None), + # Set by the image build + "injector_commit": os.environ.get("INJECTOR_COMMIT") or None, } self.logger_class = utils.logger(