aboutsummaryrefslogtreecommitdiff
path: root/mod/mod-ci-github-service-data.hxx
diff options
context:
space:
mode:
authorFrancois Kritzinger <francois@codesynthesis.com>2024-04-17 11:09:46 +0200
committerFrancois Kritzinger <francois@codesynthesis.com>2024-10-15 09:05:27 +0200
commit8945d6c3aa8695d8ad50d4d15041dea6f2c01ba7 (patch)
tree1f45917d05d3269b64d8a9626d872fc3cf26e753 /mod/mod-ci-github-service-data.hxx
parent4cb7c6d60906ca4600843766c1dfbc533caa6d7e (diff)
Get restructure to compile
Diffstat (limited to 'mod/mod-ci-github-service-data.hxx')
-rw-r--r--mod/mod-ci-github-service-data.hxx29
1 files changed, 20 insertions, 9 deletions
diff --git a/mod/mod-ci-github-service-data.hxx b/mod/mod-ci-github-service-data.hxx
index 4d0af96..7ea01ff 100644
--- a/mod/mod-ci-github-service-data.hxx
+++ b/mod/mod-ci-github-service-data.hxx
@@ -1,4 +1,4 @@
-// file : mod/mod-ci-github-serice-data.hxx -*- C++ -*-
+// file : mod/mod-ci-github-service-data.hxx -*- C++ -*-
// license : MIT; see accompanying LICENSE file
#ifndef MOD_MOD_CI_GITHUB_SERVICE_DATA_HXX
@@ -26,16 +26,27 @@ namespace brep
{
string build_id; // Full build id.
optional<string> node_id; // GitHub id.
- build_state state;
- bool state_synced;
+
+ // @@ 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;
string
state_string () const
{
- string r (to_string (*state));
- if (!state_synced)
- r += "(unsynchronized)";
- return r;
+ return state ? to_string (*state) : "null";
}
};
@@ -47,7 +58,7 @@ namespace brep
// Check suite-global data.
//
- installation_access_token installation_access;
+ gh_installation_access_token installation_access;
uint64_t installation_id;
// @@ TODO Rename to repository_node_id.
@@ -86,7 +97,7 @@ namespace brep
};
ostream&
- operator<< (ostream&, const service_data::check_run&);
+ operator<< (ostream&, const check_run&);
}
#endif // MOD_MOD_CI_GITHUB_SERVICE_DATA_HXX