aboutsummaryrefslogtreecommitdiff
path: root/mod/mod-ci-github.cxx
diff options
context:
space:
mode:
authorFrancois Kritzinger <francois@codesynthesis.com>2024-05-31 14:06:19 +0200
committerFrancois Kritzinger <francois@codesynthesis.com>2024-06-05 09:12:46 +0200
commitdfbf8fe9fed2a185406b983b82612d33f8c77a1a (patch)
tree0ccb7312ca7070e378c7a8b60c74f3e41f0b47a2 /mod/mod-ci-github.cxx
parentfabc646ba6baeb0b166da79ae34f75eb130fdcd8 (diff)
Post-review changes
Diffstat (limited to 'mod/mod-ci-github.cxx')
-rw-r--r--mod/mod-ci-github.cxx30
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 << " }";});
}