From ee8370a3139deae4a23307333a23100818ce4682 Mon Sep 17 00:00:00 2001 From: Francois Kritzinger Date: Mon, 29 Apr 2024 10:51:12 +0200 Subject: Handle warning_success webhook query parameter --- mod/mod-ci-github-gq.hxx | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'mod/mod-ci-github-gq.hxx') diff --git a/mod/mod-ci-github-gq.hxx b/mod/mod-ci-github-gq.hxx index 33aeec4..a8e5e02 100644 --- a/mod/mod-ci-github-gq.hxx +++ b/mod/mod-ci-github-gq.hxx @@ -38,6 +38,9 @@ namespace brep // The result_status is required if the build_state is built because GitHub // does not allow a check run status of `completed` without a conclusion. // + // If warning_success is true, then map result_status::warning to SUCCESS + // and to FAILURE otherwise. + // // @@ TODO Support output (title, summary, text). // bool @@ -47,7 +50,8 @@ namespace brep const string& repository_id, const string& head_sha, build_state, - optional = nullopt); + optional = nullopt, + bool warning_success = true); // Update a check run on GitHub. // @@ -56,7 +60,10 @@ namespace brep // failed. // // The result_status is required if the build_state is built because GitHub - // does not allow updating a check run to `completed` without a conclusion. + // does not allow a check run status of `completed` without a conclusion. + // + // If warning_success is true, then map result_status::warning to SUCCESS + // and to FAILURE otherwise. // // @@ TODO Support output (title, summary, text). // @@ -67,7 +74,8 @@ namespace brep const string& repository_id, const string& node_id, build_state, - optional = nullopt); + optional = nullopt, + bool warning_success = true); } #endif // MOD_MOD_CI_GITHUB_GQ_HXX -- cgit v1.1