aboutsummaryrefslogtreecommitdiff
path: root/mod/mod-ci-github-gq.hxx
diff options
context:
space:
mode:
authorFrancois Kritzinger <francois@codesynthesis.com>2024-04-29 10:51:12 +0200
committerFrancois Kritzinger <francois@codesynthesis.com>2024-05-13 09:17:32 +0200
commitcfeb6772b831fa3930a1cc8c1ffa4ece4fcf364c (patch)
treeba063ec5efaa6f44185c9d7da1ffac3e78693826 /mod/mod-ci-github-gq.hxx
parentf241ee95ca168df3e48dce3b9cc3325b7eb5f0b2 (diff)
Handle warning_success webhook query parameter
Diffstat (limited to 'mod/mod-ci-github-gq.hxx')
-rw-r--r--mod/mod-ci-github-gq.hxx14
1 files changed, 11 insertions, 3 deletions
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<result_status> = nullopt);
+ optional<result_status> = 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<result_status> = nullopt);
+ optional<result_status> = nullopt,
+ bool warning_success = true);
}
#endif // MOD_MOD_CI_GITHUB_GQ_HXX