aboutsummaryrefslogtreecommitdiff
path: root/mod/mod-ci-github-service-data.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'mod/mod-ci-github-service-data.cxx')
-rw-r--r--mod/mod-ci-github-service-data.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/mod/mod-ci-github-service-data.cxx b/mod/mod-ci-github-service-data.cxx
index e2ed904..0f6e593 100644
--- a/mod/mod-ci-github-service-data.cxx
+++ b/mod/mod-ci-github-service-data.cxx
@@ -74,7 +74,10 @@ namespace brep
{
string* v (p.next_expect_member_string_null ("status"));
if (v != nullptr)
+ {
rs = bbot::to_result_status (*v);
+ assert (s == build_state::built);
+ }
}
check_runs.emplace_back (move (bid), move (nm), move (nid), s, ss, rs);
@@ -185,7 +188,10 @@ namespace brep
s.member_name ("status");
if (cr.status)
+ {
+ assert (cr.state == build_state::built);
s.value (to_string (*cr.status));
+ }
else
s.value (nullptr);