From 38331d787cf559a2ce9d6d2b3b2c920c2225c98c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 28 May 2024 11:32:51 +0200 Subject: Review --- mod/mod-ci-github-gq.hxx | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (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 7a15b5e..3d697a9 100644 --- a/mod/mod-ci-github-gq.hxx +++ b/mod/mod-ci-github-gq.hxx @@ -96,7 +96,19 @@ namespace brep string merge_commit_id; }; - pair, bool> + + // Fetch a pull request's mergeability from GitHub. Return absent value if + // the merge commit is still being generated. Return empty string if the + // pull request is not auto-mergeable. Otherwise return the test merge + // commit id. + // + // Issue diagnostics and return absent if the request failed (which means it + // will be treated by the caller as still being generated). + // + // Note that the first request causes GitHub to start preparing the test + // merge commit. + // + optional gq_pull_request_mergeable (const basic_mark& error, const string& installation_access_token, const string& node_id); -- cgit v1.1