diff options
author | Francois Kritzinger <francois@codesynthesis.com> | 2024-10-24 09:25:59 +0200 |
---|---|---|
committer | Francois Kritzinger <francois@codesynthesis.com> | 2024-10-24 13:11:30 +0200 |
commit | 6199917a8537a3c1f06ac6345d06a283c101fc6a (patch) | |
tree | c3777663dcd47e2542f4d345f038b2f5fca4569a /mod/mod-ci-github-service-data.hxx | |
parent | bc94f77ea57edfd3e5ba0d2505f451ce56bfd422 (diff) |
Pass service_data kind+phase to constructors
Diffstat (limited to 'mod/mod-ci-github-service-data.hxx')
-rw-r--r-- | mod/mod-ci-github-service-data.hxx | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/mod/mod-ci-github-service-data.hxx b/mod/mod-ci-github-service-data.hxx index a6cb742..e816c21 100644 --- a/mod/mod-ci-github-service-data.hxx +++ b/mod/mod-ci-github-service-data.hxx @@ -11,8 +11,6 @@ namespace brep { - // @@@ Check is any data members are unused. - // Service data associated with the tenant (corresponds to GH check suite). // // It is always a top-level JSON object and the first member is always the @@ -76,7 +74,7 @@ namespace brep // // @@ TODO Serialize these fields. // - enum {local, remote /*, queue */} kind; + enum kind {local, remote /*, queue */} kind; bool pre_check; bool re_request; // Re-requested (rebuild). @@ -102,6 +100,8 @@ namespace brep // The GitHub ID of the synthetic PR merge check run or absent if it // hasn't been created yet. // + // @@ TODO Remove once merge check run code has been removed. + // optional<string> merge_node_id; // The commit ID the branch push or pull request (and its check runs) are @@ -147,8 +147,10 @@ namespace brep timestamp iat_expires_at, uint64_t installation_id, string repository_node_id, - string head_sha, - bool re_request); + enum kind kind, + bool pre_check, + bool re_request, + string head_sha); // The pull_request constructor. // @@ -157,6 +159,9 @@ namespace brep timestamp iat_expires_at, uint64_t installation_id, string repository_node_id, + enum kind kind, + bool pre_check, + bool re_request, string report_sha, string repository_clone_url, uint32_t pr_number); |