From fb02409aea7168048d9afbc374c4db81c7f1aea7 Mon Sep 17 00:00:00 2001 From: Francois Kritzinger Date: Thu, 23 May 2024 10:56:13 +0200 Subject: build_unloaded() --- mod/mod-ci-github.cxx | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'mod/mod-ci-github.cxx') diff --git a/mod/mod-ci-github.cxx b/mod/mod-ci-github.cxx index 7205e6e..1536e37 100644 --- a/mod/mod-ci-github.cxx +++ b/mod/mod-ci-github.cxx @@ -573,6 +573,26 @@ namespace brep return true; } + function (const tenant_service&)> ci_github:: + build_unloaded (tenant_service&& ts, + const diag_epilogue& log_writer) const noexcept + { + NOTIFICATION_DIAG (log_writer); + + service_data sd; + try + { + sd = service_data (*ts.data); + } + catch (const invalid_argument& e) + { + error << "failed to parse service data: " << e; + return nullptr; + } + + return nullptr; + } + // Build state change notifications (see tenant-services.hxx for // background). Mapping our state transitions to GitHub pose multiple // problems: -- cgit v1.1