aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mod/mod-ci-github-service-data.cxx6
-rw-r--r--mod/mod-ci-github-service-data.hxx4
-rw-r--r--mod/mod-ci-github.cxx2
3 files changed, 12 insertions, 0 deletions
diff --git a/mod/mod-ci-github-service-data.cxx b/mod/mod-ci-github-service-data.cxx
index 11e19ae..0a37453 100644
--- a/mod/mod-ci-github-service-data.cxx
+++ b/mod/mod-ci-github-service-data.cxx
@@ -40,6 +40,7 @@ namespace brep
p.next_expect_member_number<uint64_t> ("installation_id");
repository_node_id = p.next_expect_member_string ("repository_node_id");
+ event_node_id = p.next_expect_member_string ("event_node_id");
{
string* s (p.next_expect_member_string_null ("repository_clone_url"));
@@ -105,6 +106,7 @@ namespace brep
timestamp iat_ea,
uint64_t iid,
string rid,
+ string eid,
kind_type k,
bool rr,
bool pc,
@@ -115,6 +117,7 @@ namespace brep
installation_access (move (iat_tok), iat_ea),
installation_id (iid),
repository_node_id (move (rid)),
+ event_node_id (move (eid)),
check_sha (move (cs)),
report_sha (move (rs))
{
@@ -128,6 +131,7 @@ namespace brep
timestamp iat_ea,
uint64_t iid,
string rid,
+ string eid,
kind_type k,
bool rr,
bool pc,
@@ -140,6 +144,7 @@ namespace brep
installation_access (move (iat_tok), iat_ea),
installation_id (iid),
repository_node_id (move (rid)),
+ event_node_id (move (eid)),
repository_clone_url (move (rcu)),
pr_number (prn),
check_sha (move (cs)),
@@ -168,6 +173,7 @@ namespace brep
s.member ("installation_id", installation_id);
s.member ("repository_node_id", repository_node_id);
+ s.member ("event_node_id", event_node_id);
s.member_name ("repository_clone_url");
if (repository_clone_url)
diff --git a/mod/mod-ci-github-service-data.hxx b/mod/mod-ci-github-service-data.hxx
index ae1506d..27d4791 100644
--- a/mod/mod-ci-github-service-data.hxx
+++ b/mod/mod-ci-github-service-data.hxx
@@ -92,6 +92,8 @@ namespace brep
string repository_node_id; // GitHub-internal opaque repository id.
+ string event_node_id; // check_suite/pull_request node id.
+
// The following two are only used for pull requests.
//
// @@ TODO/LATER: maybe put them in a struct?
@@ -149,6 +151,7 @@ namespace brep
timestamp iat_expires_at,
uint64_t installation_id,
string repository_node_id,
+ string event_node_id,
kind_type kind,
bool pre_check,
bool re_request,
@@ -162,6 +165,7 @@ namespace brep
timestamp iat_expires_at,
uint64_t installation_id,
string repository_node_id,
+ string event_node_id,
kind_type kind,
bool pre_check,
bool re_request,
diff --git a/mod/mod-ci-github.cxx b/mod/mod-ci-github.cxx
index f7480b6..b408d3a 100644
--- a/mod/mod-ci-github.cxx
+++ b/mod/mod-ci-github.cxx
@@ -525,6 +525,7 @@ namespace brep
iat->expires_at,
cs.installation.id,
move (cs.repository.node_id),
+ cs.check_suite.node_id,
kind, false /* pre_check */, re_requested,
move (check_sha),
move (cs.check_suite.head_sha) /* report_sha */);
@@ -771,6 +772,7 @@ namespace brep
iat->expires_at,
pr.installation.id,
move (pr.repository.node_id),
+ pr.pull_request.node_id,
kind, true /* pre_check */, false /* re_request */,
move (check_sha),
move (pr.pull_request.head_sha) /* report_sha */,