diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2024-04-18 11:16:08 +0200 |
---|---|---|
committer | Francois Kritzinger <francois@codesynthesis.com> | 2024-05-13 09:17:32 +0200 |
commit | 056c8a7a0a5f6dc2305e6cd71afc8e75fd3f5ff5 (patch) | |
tree | d50eea69bc1d49880c5426be619bc5a59107d503 /mod/mod-ci-github-gh.cxx | |
parent | 9b73ccf57d7731505c81728142fd7038c2960406 (diff) |
Review
Diffstat (limited to 'mod/mod-ci-github-gh.cxx')
-rw-r--r-- | mod/mod-ci-github-gh.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/mod/mod-ci-github-gh.cxx b/mod/mod-ci-github-gh.cxx index 28f21f7..5664a7a 100644 --- a/mod/mod-ci-github-gh.cxx +++ b/mod/mod-ci-github-gh.cxx @@ -14,11 +14,13 @@ namespace brep string gh_to_status (build_state st) { - // @@ Just return by value (small string optimization). + // Just return by value (small string optimization). // - // @@ TMP Keep this comment, right? - // - return gh_status[static_cast<size_t> (st)]; + switch (st) + { + case build_state::queued: return "QUEUED"; + // @@ TODO: complete. + } } // Return the build_state corresponding to a GitHub check run status |