aboutsummaryrefslogtreecommitdiff
path: root/mod/ci-common.hxx
diff options
context:
space:
mode:
authorFrancois Kritzinger <francois@codesynthesis.com>2024-10-24 09:25:59 +0200
committerFrancois Kritzinger <francois@codesynthesis.com>2024-12-10 16:34:15 +0200
commit656b96fde2f28d4e6866180174c4e8481a358624 (patch)
tree8d2bece19568909dd0d0d89099250136e949d2ae /mod/ci-common.hxx
parent630834173bba497c9f21eb0459ba5cb7264346ee (diff)
Handle check suite rebuilds (all checks) on a commit and/or PR
Diffstat (limited to 'mod/ci-common.hxx')
-rw-r--r--mod/ci-common.hxx10
1 files changed, 10 insertions, 0 deletions
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<build_state>
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<tenant_service>
+ find (odb::core::database&,
+ const string& type,
+ const string& id) const;
+
// Helpers.
//