diff options
author | Francois Kritzinger <francois@codesynthesis.com> | 2024-04-17 08:35:50 +0200 |
---|---|---|
committer | Francois Kritzinger <francois@codesynthesis.com> | 2024-06-05 09:12:46 +0200 |
commit | c765b8cf0aca2d4121919f21880d9923fd772bb8 (patch) | |
tree | 22f567f8879b9ed9c57e5592fa0abd7832776c1d /mod | |
parent | 713ad953d7314ced9258129956587d83cf882e46 (diff) |
Rename queue_check_runs() to create_check_runs()
Diffstat (limited to 'mod')
-rw-r--r-- | mod/mod-ci-github.cxx | 13 |
1 files changed, 7 insertions, 6 deletions
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<reference_wrapper<const build>>& bs, - const build_queued_hints* bqh) + create_check_runs (const string& ri, // Repository ID + const string& hs, // Head SHA + const vector<reference_wrapper<const build>>& 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). // |