aboutsummaryrefslogtreecommitdiff
path: root/mod/mod-ci-github-service-data.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2024-06-07 10:17:30 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2024-06-07 10:17:30 +0200
commitf24e48fef5be97f53225ce3a115f35a419b3cdbd (patch)
treec77d36568974b111b958702228fd5c24acada84a /mod/mod-ci-github-service-data.cxx
parentcbe3a565001efe2324b65f52bded710bab4da26d (diff)
Reviewci-github
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 7ae0b4f..6db32fd 100644
--- a/mod/mod-ci-github-service-data.cxx
+++ b/mod/mod-ci-github-service-data.cxx
@@ -77,7 +77,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);
@@ -188,7 +191,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);