diff options
author | Francois Kritzinger <francois@codesynthesis.com> | 2024-04-17 08:36:56 +0200 |
---|---|---|
committer | Francois Kritzinger <francois@codesynthesis.com> | 2024-10-15 09:05:27 +0200 |
commit | 3f68d589272c510d9ee6c125188119beb7902691 (patch) | |
tree | 0904c308b67746132ff7193cf80cfee012667de5 /mod/mod-ci-github.cxx | |
parent | d9d21dd4608afaaf46a4097c21c0730ef75e1dac (diff) |
Misc. changes
Diffstat (limited to 'mod/mod-ci-github.cxx')
-rw-r--r-- | mod/mod-ci-github.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/mod/mod-ci-github.cxx b/mod/mod-ci-github.cxx index bb174cf..2419d32 100644 --- a/mod/mod-ci-github.cxx +++ b/mod/mod-ci-github.cxx @@ -944,7 +944,7 @@ namespace brep // Parse the HTTP response. // - int sc; // Status code. + uint16_t sc; // Status code. try { // Note: re-open in/out so that they get automatically closed on @@ -1357,7 +1357,8 @@ namespace brep // string ep ("app/installations/" + to_string (iid) + "/access_tokens"); - int sc (github_post (iat, ep, strings {"Authorization: Bearer " + jwt})); + uint16_t sc ( + github_post (iat, ep, strings {"Authorization: Bearer " + jwt})); // Possible response status codes from the access_tokens endpoint: // @@ -1552,8 +1553,9 @@ namespace brep ostream& operator<< (ostream& os, const service_data::check_run& cr) { - os << "check_run { node_id: " << cr.node_id.value_or ("null") - << ", build_id: " << cr.build_id << " }"; + os << "node_id: " << cr.node_id.value_or ("null") + << ", build_id: " << cr.build_id + << ", state: " << (cr.state ? to_string (*cr.state) : "null"); return os; } |