aboutsummaryrefslogtreecommitdiff
path: root/mod/mod-ci-github-service-data.hxx
diff options
context:
space:
mode:
authorFrancois Kritzinger <francois@codesynthesis.com>2024-10-29 16:54:26 +0200
committerFrancois Kritzinger <francois@codesynthesis.com>2024-12-10 16:34:15 +0200
commite4447a19e8a58c16a9c31d13c5ed2c26b30a3550 (patch)
tree2b540df614c8a1ea7aa80c296df6129ffa7cf4ad /mod/mod-ci-github-service-data.hxx
parent554d116a7b49eba5dd64ceb61b2f3b922f21c100 (diff)
Implement build_unloaded_pre_check() and build_unloaded_load()
Diffstat (limited to 'mod/mod-ci-github-service-data.hxx')
-rw-r--r--mod/mod-ci-github-service-data.hxx19
1 files changed, 7 insertions, 12 deletions
diff --git a/mod/mod-ci-github-service-data.hxx b/mod/mod-ci-github-service-data.hxx
index ae1506d..eb81ae4 100644
--- a/mod/mod-ci-github-service-data.hxx
+++ b/mod/mod-ci-github-service-data.hxx
@@ -74,8 +74,6 @@ namespace brep
// Kind and phase.
//
- // @@ TODO Serialize these fields.
- //
enum kind_type {local, remote /*, queue */} kind;
bool pre_check;
bool re_request; // Re-requested (rebuild).
@@ -92,20 +90,15 @@ namespace brep
string repository_node_id; // GitHub-internal opaque repository id.
+ string repository_clone_url;
+
// The following two are only used for pull requests.
//
// @@ TODO/LATER: maybe put them in a struct?
//
- optional<string> repository_clone_url;
+ optional<string> pr_node_id;
optional<uint32_t> pr_number;
- // 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
// building. This will be the head commit for the branch push as well as
// local pull requests and the test merge commit for remote pull requests.
@@ -122,7 +115,7 @@ namespace brep
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.
+ // hasn't been created yet.
//
optional<string> conclusion_node_id;
@@ -149,6 +142,7 @@ namespace brep
timestamp iat_expires_at,
uint64_t installation_id,
string repository_node_id,
+ string repository_clone_url,
kind_type kind,
bool pre_check,
bool re_request,
@@ -162,12 +156,13 @@ namespace brep
timestamp iat_expires_at,
uint64_t installation_id,
string repository_node_id,
+ string repository_clone_url,
kind_type kind,
bool pre_check,
bool re_request,
string check_sha,
string report_sha,
- string repository_clone_url,
+ string pr_node_id,
uint32_t pr_number);
service_data () = default;