aboutsummaryrefslogtreecommitdiff
path: root/mod/mod-ci-github-gq.hxx
diff options
context:
space:
mode:
authorFrancois Kritzinger <francois@codesynthesis.com>2024-06-04 11:50:20 +0200
committerFrancois Kritzinger <francois@codesynthesis.com>2024-10-15 09:05:28 +0200
commit621ea867391ebd66d02dc57c6fd7c6ebf617bac0 (patch)
treef8765a9a78314253c351edf1e7b431fdaef54b64 /mod/mod-ci-github-gq.hxx
parent8aee1c959b53ff300a9548615c44b51c960e1392 (diff)
Fetch repository pull requests with the specified base branch
Diffstat (limited to 'mod/mod-ci-github-gq.hxx')
-rw-r--r--mod/mod-ci-github-gq.hxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/mod/mod-ci-github-gq.hxx b/mod/mod-ci-github-gq.hxx
index 9721b6e..439f7b7 100644
--- a/mod/mod-ci-github-gq.hxx
+++ b/mod/mod-ci-github-gq.hxx
@@ -116,6 +116,18 @@ namespace brep
gq_pull_request_mergeable (const basic_mark& error,
const string& installation_access_token,
const string& node_id);
+
+ // Fetch the last 100 open pull requests with the specified base branch from
+ // the repository with the specified node ID.
+ //
+ // Issue diagnostics and return nullopt if the repository was not found or
+ // an error occurred.
+ //
+ optional<vector<gh_pull_request>>
+ gq_fetch_open_pull_requests (const basic_mark& error,
+ const string& installation_access_token,
+ const string& repository_node_id,
+ const string& base_branch);
}
#endif // MOD_MOD_CI_GITHUB_GQ_HXX