From 656b96fde2f28d4e6866180174c4e8481a358624 Mon Sep 17 00:00:00 2001 From: Francois Kritzinger Date: Thu, 24 Oct 2024 09:25:59 +0200 Subject: Handle check suite rebuilds (all checks) on a commit and/or PR --- mod/ci-common.hxx | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'mod/ci-common.hxx') diff --git a/mod/ci-common.hxx b/mod/ci-common.hxx index d155398..1703ae0 100644 --- a/mod/ci-common.hxx +++ b/mod/ci-common.hxx @@ -205,6 +205,16 @@ namespace brep optional rebuild (odb::core::database&, const build_id&) const; + // Find the tenant given the tenant service type and id and return the + // associated data or nullopt if there is no such tenant. + // + // Note: should be called out of the database transaction. + // + optional + find (odb::core::database&, + const string& type, + const string& id) const; + // Helpers. // -- cgit v1.1