From c5c2f6dd99e575b1521bd158bc4cffad50279c72 Mon Sep 17 00:00:00 2001 From: Francois Kritzinger Date: Thu, 14 Nov 2024 10:41:19 +0200 Subject: Add function gq_update_or_create_check_run() --- mod/mod-ci-github-gq.cxx | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'mod/mod-ci-github-gq.cxx') diff --git a/mod/mod-ci-github-gq.cxx b/mod/mod-ci-github-gq.cxx index 0868987..4d1c583 100644 --- a/mod/mod-ci-github-gq.cxx +++ b/mod/mod-ci-github-gq.cxx @@ -573,6 +573,23 @@ namespace brep return r; } + bool + gq_update_or_create_check_run (const basic_mark& error, + check_run& cr, + const string& iat, + const string& rid, + const optional& nid, + const string& hs, + const optional& du, + build_state st, + optional br) + { + if (nid) + return gq_update_check_run (error, cr, iat, rid, *nid, du, st, br); + else + return gq_create_check_run (error, cr, iat, rid, hs, du, st, br); + } + // Serialize a GraphQL query that fetches a pull request from GitHub. // static string -- cgit v1.1