aboutsummaryrefslogtreecommitdiff
path: root/mod/mod-ci-github-gq.hxx
diff options
context:
space:
mode:
authorFrancois Kritzinger <francois@codesynthesis.com>2025-01-24 13:57:26 +0200
committerFrancois Kritzinger <francois@codesynthesis.com>2025-01-27 10:26:43 +0200
commit1ebf9597fc788102bdb6bbf5445c0c25c93b678c (patch)
tree54ec3f34c1d8079c580527f5cb52d88e4aa706fd /mod/mod-ci-github-gq.hxx
parentdd17caa92ef089dad70cbf6fab26ef324aa0b6be (diff)
ci-github: Update queued and building check run descriptions
Diffstat (limited to 'mod/mod-ci-github-gq.hxx')
-rw-r--r--mod/mod-ci-github-gq.hxx29
1 files changed, 21 insertions, 8 deletions
diff --git a/mod/mod-ci-github-gq.hxx b/mod/mod-ci-github-gq.hxx
index 0fc3817..19c4924 100644
--- a/mod/mod-ci-github-gq.hxx
+++ b/mod/mod-ci-github-gq.hxx
@@ -82,28 +82,41 @@ namespace brep
const optional<string>& details_url,
gq_built_result);
- // Update a check run on GitHub. Update `cr` with the new data (state and
- // state_synced). Return false and issue diagnostics if the request failed.
+ // Update a check run on GitHub to the queued or building state. Note that
+ // the state cannot be built because in that case a conclusion is required.
+ //
+ // Update `cr` with the new data (state and state_synced). Return false and
+ // issue diagnostics if the request failed.
//
// Throw invalid_argument if the passed data is invalid, missing, or
// inconsistent.
//
+ // Title and summary are required and cannot be empty.
+ //
+ bool
+ gq_update_check_run (const basic_mark& error,
+ check_run& cr,
+ const string& installation_access_token,
+ const string& repository_id,
+ const string& node_id,
+ build_state,
+ string title,
+ string summary);
+
+ // As above but update a check run to the built state (which requires a
+ // conclusion).
+ //
// Note that GitHub allows any state transitions except from built (but
// built to built is allowed). The latter case is signalled by setting the
// check_run state_synced member to false and the state member to built.
//
- // The gq_built_result is required if the build_state is built because
- // GitHub does not allow a check run status of `completed` without at least
- // a conclusion.
- //
bool
gq_update_check_run (const basic_mark& error,
check_run& cr,
const string& installation_access_token,
const string& repository_id,
const string& node_id,
- build_state,
- optional<gq_built_result> = nullopt);
+ gq_built_result);
// Fetch pre-check information for a pull request from GitHub. This
// information is used to decide whether or not to CI the PR and is