From d9d21dd4608afaaf46a4097c21c0730ef75e1dac Mon Sep 17 00:00:00 2001 From: Francois Kritzinger Date: Wed, 17 Apr 2024 08:35:50 +0200 Subject: Rename queue_check_runs() to create_check_runs() --- mod/mod-ci-github.cxx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'mod/mod-ci-github.cxx') diff --git a/mod/mod-ci-github.cxx b/mod/mod-ci-github.cxx index 95aa822..bb174cf 100644 --- a/mod/mod-ci-github.cxx +++ b/mod/mod-ci-github.cxx @@ -612,10 +612,11 @@ namespace brep // Serialize `createCheckRun` mutations for one or more builds to GraphQL. // static string - queue_check_runs (const string& ri, // Repository ID - const string& hs, // Head SHA - const vector>& bs, - const build_queued_hints* bqh) + create_check_runs (const string& ri, // Repository ID + const string& hs, // Head SHA + const vector>& bs, + build_state st, + const tenant_service_base::build_hints* bh = nullptr) { ostringstream os; @@ -631,13 +632,13 @@ namespace brep // Check run name. // - string nm (check_run_name (b, bqh)); + string nm (check_run_name (b, bh)); os << gq_name (al) << ":createCheckRun(input: {" << '\n' << " name: " << gq_str (nm) << ',' << '\n' << " repositoryId: " << gq_str (ri) << ',' << '\n' << " headSha: " << gq_str (hs) << ',' << '\n' - << " status: " << gq_enum ("QUEUED") << '\n' + << " status: " << gq_enum (to_string_gh (st)) << '\n' << "})" << '\n' // Specify the selection set (fields to be returned). // -- cgit v1.1