diff options
Diffstat (limited to 'mod/mod-ci-github-gh.hxx')
-rw-r--r-- | mod/mod-ci-github-gh.hxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/mod/mod-ci-github-gh.hxx b/mod/mod-ci-github-gh.hxx index 45b5359..b3da197 100644 --- a/mod/mod-ci-github-gh.hxx +++ b/mod/mod-ci-github-gh.hxx @@ -42,15 +42,11 @@ namespace brep // The "check_suite" object within a check_suite webhook event request. // - // @@ TODO Remove unused fields. - // struct gh_check_suite { string node_id; string head_branch; string head_sha; - string before; - string after; explicit gh_check_suite (json::parser&); @@ -81,8 +77,11 @@ namespace brep build_state gh_from_status (const string&); + // If warning_success is true, then map result_status::warning to SUCCESS + // and to FAILURE otherwise. + // string - gh_to_conclusion (result_status); + gh_to_conclusion (result_status, bool warning_success); // Create a check_run name from a build. If the second argument is not // NULL, return an abbreviated id if possible. |