diff options
author | Francois Kritzinger <francois@codesynthesis.com> | 2024-04-17 08:35:50 +0200 |
---|---|---|
committer | Francois Kritzinger <francois@codesynthesis.com> | 2024-10-15 09:05:27 +0200 |
commit | d9d21dd4608afaaf46a4097c21c0730ef75e1dac (patch) | |
tree | 0add91d87d1dbf29afe9f825d9962642d25e25e4 /mod/mod-ci-github.cxx | |
parent | 762303560568be4c213d2294adb893bd25eeced8 (diff) |
Rename queue_check_runs() to create_check_runs()
Diffstat (limited to 'mod/mod-ci-github.cxx')
-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). // |