diff options
author | Francois Kritzinger <francois@codesynthesis.com> | 2024-04-22 14:26:00 +0200 |
---|---|---|
committer | Francois Kritzinger <francois@codesynthesis.com> | 2024-10-15 09:05:28 +0200 |
commit | 3a90fa9652ceab08e1f424ca7e1ab3b08eb1df18 (patch) | |
tree | 6d4f179baef932c1f90402662238d79aacac05a6 /mod/mod-ci-github-service-data.hxx | |
parent | b3fa1468a7988349eeb90c63a4e375ba76116c04 (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; } }; |