diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2024-04-18 11:16:08 +0200 |
---|---|---|
committer | Francois Kritzinger <francois@codesynthesis.com> | 2024-10-15 09:05:28 +0200 |
commit | f632d0d3aaa0cf06bb660d5574b19a1120f43303 (patch) | |
tree | 8f26c466ba917ec4e19af727eefc7f6354c55fa3 /mod/mod-ci-github-gh.cxx | |
parent | b691b1c5760333e728ca3ddbea856410af05008f (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 |