diff options
author | Francois Kritzinger <francois@codesynthesis.com> | 2024-05-31 14:06:19 +0200 |
---|---|---|
committer | Francois Kritzinger <francois@codesynthesis.com> | 2024-10-15 09:05:28 +0200 |
commit | 3176290146088d6f290866f39350bfff1060b0ce (patch) | |
tree | df5ec4b2f8df8b349e302b1c6b0f03bffb9d9b91 /mod/mod-ci-github.cxx | |
parent | 1b164be173514357bad3d35908c8941af84ec99b (diff) |
Post-review changes
Diffstat (limited to 'mod/mod-ci-github.cxx')
-rw-r--r-- | mod/mod-ci-github.cxx | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/mod/mod-ci-github.cxx b/mod/mod-ci-github.cxx index 19798ad..caca60b 100644 --- a/mod/mod-ci-github.cxx +++ b/mod/mod-ci-github.cxx @@ -676,7 +676,7 @@ namespace brep if (iat == nullptr) return nullptr; // Try again on the next call. - auto make_iat_updater = [] () + auto make_iat_updater = [&new_iat, &error] () { function<optional<string> (const tenant_service&)> r; @@ -791,7 +791,7 @@ namespace brep // if (first) { - if (auto cr = create_cr (merge_check_run_name)) + if (auto cr = create_synthetic_cr (merge_check_run_name)) { l3 ([&]{trace << "created check_run { " << *cr << " }";}); @@ -829,9 +829,11 @@ namespace brep // failed synthetic conclusion check run since the PR cannot be merged // anyway. - if (auto cr = update_cr (merge_node_id, merge_check_run_name, - result_status::error, - "GitHub is unable to create test merge commit")) + if (auto cr = update_synthetic_cr ( + merge_node_id, + merge_check_run_name, + result_status::error, + "GitHub is unable to create test merge commit")) { l3 ([&]{trace << "updated check_run { " << *cr << " }";}); @@ -915,7 +917,7 @@ namespace brep if (second) { - if (auto cr = create_cr (conclusion_check_run_name)) + if (auto cr = create_synthetic_cr (conclusion_check_run_name)) { l3 ([&]{trace << "created check_run { " << *cr << " }";}); @@ -929,10 +931,10 @@ namespace brep { // Update merge check run to successful. // - if (auto cr = update_cr (merge_node_id, - merge_check_run_name, - result_status::success, - "GitHub created test merge commit")) + if (auto cr = update_synthetic_cr (merge_node_id, + merge_check_run_name, + result_status::success, + "GitHub created test merge commit")) { l3 ([&]{trace << "updated check_run { " << *cr << " }";}); @@ -957,10 +959,10 @@ namespace brep else msg += "Internal service error"; msg += "\n```"; - if (auto cr = update_cr (conclusion_node_id, - conclusion_check_run_name, - result_status::error, - move (msg))) + if (auto cr = update_synthetic_cr (conclusion_node_id, + conclusion_check_run_name, + result_status::error, + move (msg))) { l3 ([&]{trace << "updated check_run { " << *cr << " }";}); } |