diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2024-04-30 12:25:48 +0200 |
---|---|---|
committer | Francois Kritzinger <francois@codesynthesis.com> | 2024-10-15 09:05:28 +0200 |
commit | 47dd5a71330556342c765ba282d7acdec5c4d75a (patch) | |
tree | b5506be871011cea4607b9db5b2b31f5adbff125 /mod/mod-ci-github-gq.hxx | |
parent | 0ab2f6b15d9d7cada6530ceeef9df203a4ba2fcf (diff) |
Review
Diffstat (limited to 'mod/mod-ci-github-gq.hxx')
-rw-r--r-- | mod/mod-ci-github-gq.hxx | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/mod/mod-ci-github-gq.hxx b/mod/mod-ci-github-gq.hxx index a8e5e02..e8bb397 100644 --- a/mod/mod-ci-github-gq.hxx +++ b/mod/mod-ci-github-gq.hxx @@ -23,6 +23,9 @@ namespace brep // the new states and node IDs. Return false and issue diagnostics if the // request failed. // + // Note: no details_url yet since there will be no entry in the build result + // search page until the task starts building. + // bool gq_create_check_runs (const basic_mark& error, vector<check_run>& check_runs, @@ -36,22 +39,24 @@ namespace brep // failed. // // 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). + // does not allow a check run status of `completed` without a conclusion. @@ // + struct gq_built_result + { + string conclusion; + string title; + string summmary; + }; + bool gq_create_check_run (const basic_mark& error, check_run& cr, const string& installation_access_token, const string& repository_id, const string& head_sha, + const string& details_url, build_state, - optional<result_status> = nullopt, - bool warning_success = true); + optional<gq_built_result> = nullopt); // Update a check run on GitHub. // @@ -60,12 +65,7 @@ namespace brep // failed. // // 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). + // does not allow a check run status of `completed` without a conclusion. @@ // bool gq_update_check_run (const basic_mark& error, @@ -73,9 +73,9 @@ namespace brep const string& installation_access_token, const string& repository_id, const string& node_id, + const string& details_url, build_state, - optional<result_status> = nullopt, - bool warning_success = true); + optional<gq_built_result> = nullopt); } #endif // MOD_MOD_CI_GITHUB_GQ_HXX |