diff options
author | Francois Kritzinger <francois@codesynthesis.com> | 2024-04-22 14:26:00 +0200 |
---|---|---|
committer | Francois Kritzinger <francois@codesynthesis.com> | 2024-04-24 15:16:14 +0200 |
commit | 6bfff2ce1f5bb0317f349591fec08dbcb21a5152 (patch) | |
tree | eb8b5224ca54805b0fbccb778795088d481540cc /mod/mod-ci-github-service-data.hxx | |
parent | daa8b6535a2c9ea0f17952ed7e269b61cd1d8933 (diff) |
Add service data flag state_synced
Diffstat (limited to 'mod/mod-ci-github-service-data.hxx')
-rw-r--r-- | mod/mod-ci-github-service-data.hxx | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/mod/mod-ci-github-service-data.hxx b/mod/mod-ci-github-service-data.hxx index 7ea01ff..d4a47d5 100644 --- a/mod/mod-ci-github-service-data.hxx +++ b/mod/mod-ci-github-service-data.hxx @@ -27,26 +27,16 @@ namespace brep string build_id; // Full build id. optional<string> node_id; // GitHub id. - // @@ TODO - // - // build_state state; - // bool state_synced; - - // string - // state_string () const - // { - // string r (to_string (*state)); - // if (!state_synced) - // r += "(unsynchronized)"; - // return r; - // } - - optional<build_state> state; + build_state state; + bool state_synced; string state_string () const { - return state ? to_string (*state) : "null"; + string r (to_string (state)); + if (!state_synced) + r += "(unsynchronized)"; + return r; } }; |