aboutsummaryrefslogtreecommitdiff
path: root/mod/mod-ci-github-service-data.cxx
diff options
context:
space:
mode:
authorFrancois Kritzinger <francois@codesynthesis.com>2024-06-06 16:32:06 +0200
committerFrancois Kritzinger <francois@codesynthesis.com>2024-10-15 09:05:28 +0200
commit4697aefcf0de2003f106fefab67af6b1132ed26c (patch)
treed0dd3d0f2b100aac9a711b3bb1bb4832f71636e7 /mod/mod-ci-github-service-data.cxx
parent3fcbcc11675540fc7296073debc0cab3f74e7997 (diff)
Post-review changes: conclusion
Diffstat (limited to 'mod/mod-ci-github-service-data.cxx')
-rw-r--r--mod/mod-ci-github-service-data.cxx15
1 files changed, 14 insertions, 1 deletions
diff --git a/mod/mod-ci-github-service-data.cxx b/mod/mod-ci-github-service-data.cxx
index 3af0c71..7ae0b4f 100644
--- a/mod/mod-ci-github-service-data.cxx
+++ b/mod/mod-ci-github-service-data.cxx
@@ -73,7 +73,14 @@ namespace brep
build_state s (to_build_state (p.next_expect_member_string ("state")));
bool ss (p.next_expect_member_boolean<bool> ("state_synced"));
- check_runs.emplace_back (move (bid), move (nm), move (nid), s, ss);
+ optional<result_status> rs;
+ {
+ string* v (p.next_expect_member_string_null ("status"));
+ if (v != nullptr)
+ rs = bbot::to_result_status (*v);
+ }
+
+ check_runs.emplace_back (move (bid), move (nm), move (nid), s, ss, rs);
p.next_expect (event::end_object);
}
@@ -179,6 +186,12 @@ namespace brep
s.member ("state", to_string (cr.state));
s.member ("state_synced", cr.state_synced);
+ s.member_name ("status");
+ if (cr.status)
+ s.value (to_string (*cr.status));
+ else
+ s.value (nullptr);
+
s.end_object ();
}
s.end_array ();