aboutsummaryrefslogtreecommitdiff
path: root/mod/mod-ci-github-gh.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2024-04-18 11:16:08 +0200
committerFrancois Kritzinger <francois@codesynthesis.com>2024-04-24 15:16:14 +0200
commitc5aec89271a7ea6e80f6ba111e662296d59ea9ac (patch)
tree874d33576c350a4ecb1b138232f5460a56ca9b67 /mod/mod-ci-github-gh.cxx
parentc821112584e27f4488437e78a5afc9208f59a7dc (diff)
Review
Diffstat (limited to 'mod/mod-ci-github-gh.cxx')
-rw-r--r--mod/mod-ci-github-gh.cxx10
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