diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2024-05-28 11:32:51 +0200 |
---|---|---|
committer | Francois Kritzinger <francois@codesynthesis.com> | 2024-10-15 09:05:28 +0200 |
commit | 38331d787cf559a2ce9d6d2b3b2c920c2225c98c (patch) | |
tree | 58bf169f8224c25a8ce42f4fe3b4cc032cb21d3f /mod/mod-ci-github-service-data.hxx | |
parent | f2422282b42dedb87988dd9e86ce7bac1ecccd95 (diff) |
Review
Diffstat (limited to 'mod/mod-ci-github-service-data.hxx')
-rw-r--r-- | mod/mod-ci-github-service-data.hxx | 32 |
1 files changed, 28 insertions, 4 deletions
diff --git a/mod/mod-ci-github-service-data.hxx b/mod/mod-ci-github-service-data.hxx index 252f992..4a433c5 100644 --- a/mod/mod-ci-github-service-data.hxx +++ b/mod/mod-ci-github-service-data.hxx @@ -61,17 +61,30 @@ namespace brep // The following two are only used for pull requests. // + // @@ TODO/LATER: maybe put them in a struct? + // optional<string> repository_clone_url; optional<uint32_t> pr_number; + // The GitHub ID of the synthetic PR merge check run or absent if it + // hasn't been created yet. + // + optional<string> merge_node_id; + // The commit ID the check suite or pull request (and its check runs) are - // associated with. In the case of a pull request this will be - // `pull_request.head.sha`. + // associated with. Note that in the case of a pull request this will be + // the head commit (`pull_request.head.sha`) as opposed to the merge + // commit. // string head_sha; vector<check_run> check_runs; + // The GitHub ID of the synthetic conclusion check run or absent if it + // hasn't been created yet. See also merge_node_id above. + // + optional<string> conclusion_node_id; + // Return the check run with the specified build ID or nullptr if not // found. // @@ -85,14 +98,25 @@ namespace brep explicit service_data (const string& json); + // The check_suite constructor. + // + service_data (bool warning_success, + string iat_token, + timestamp iat_expires_at, + uint64_t installation_id, + string repository_node_id, + string head_sha); + + // The pull_request constructor. + // service_data (bool warning_success, string iat_token, timestamp iat_expires_at, uint64_t installation_id, string repository_node_id, string head_sha, - optional<string> repository_clone_url = nullopt, - optional<uint32_t> pr_number = nullopt); + string repository_clone_url, + uint32_t pr_number); service_data () = default; |