diff options
author | Francois Kritzinger <francois@codesynthesis.com> | 2024-06-03 09:55:36 +0200 |
---|---|---|
committer | Francois Kritzinger <francois@codesynthesis.com> | 2024-12-10 16:34:15 +0200 |
commit | dd0fbb6e941bf77204c7172f2e1498d9d5d7a3b3 (patch) | |
tree | def61787bc0881d5c5dde27d3d7e580c502db2c9 /mod/mod-ci-github-service-data.cxx | |
parent | 99a76da2a6c6b9ea4db63e1eba08d59869f6133c (diff) |
Create conclusion CR for check suites and update it in build_built()
Diffstat (limited to 'mod/mod-ci-github-service-data.cxx')
-rw-r--r-- | mod/mod-ci-github-service-data.cxx | 15 |
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 561752d..e2ed904 100644 --- a/mod/mod-ci-github-service-data.cxx +++ b/mod/mod-ci-github-service-data.cxx @@ -70,7 +70,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); } @@ -176,6 +183,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 (); |