aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authorFrancois Kritzinger <francois@codesynthesis.com>2024-05-30 10:17:04 +0200
committerFrancois Kritzinger <francois@codesynthesis.com>2024-06-05 09:12:46 +0200
commit443678c15f3bda4b258b31ed2d6ef409577cafdf (patch)
tree9f55bd7f3d16653ea755007ae3248b937392415a /mod
parentd8de87eb714aa27e87a08fafccbd9b685e19fe3b (diff)
Rename head_sha to report_sha in service data
Diffstat (limited to 'mod')
-rw-r--r--mod/mod-ci-github-service-data.cxx10
-rw-r--r--mod/mod-ci-github-service-data.hxx4
-rw-r--r--mod/mod-ci-github.cxx6
3 files changed, 10 insertions, 10 deletions
diff --git a/mod/mod-ci-github-service-data.cxx b/mod/mod-ci-github-service-data.cxx
index 7fd554d..1121f2f 100644
--- a/mod/mod-ci-github-service-data.cxx
+++ b/mod/mod-ci-github-service-data.cxx
@@ -55,7 +55,7 @@ namespace brep
merge_node_id = *s;
}
- head_sha = p.next_expect_member_string ("head_sha");
+ report_sha = p.next_expect_member_string ("report_sha");
p.next_expect_member_array ("check_runs");
while (p.next_expect (event::begin_object, event::end_array))
@@ -93,12 +93,12 @@ namespace brep
timestamp iat_ea,
uint64_t iid,
string rid,
- string hs)
+ string rs)
: warning_success (ws),
installation_access (move (iat_tok), iat_ea),
installation_id (iid),
repository_node_id (move (rid)),
- head_sha (move (hs))
+ report_sha (move (rs))
{
}
@@ -117,7 +117,7 @@ namespace brep
repository_node_id (move (rid)),
repository_clone_url (move (rcu)),
pr_number (prn),
- head_sha (move (hs))
+ report_sha (move (rs))
{
}
@@ -161,7 +161,7 @@ namespace brep
else
s.value (nullptr);
- s.member ("head_sha", head_sha);
+ s.member ("report_sha", report_sha);
s.member_begin_array ("check_runs");
for (const check_run& cr: check_runs)
diff --git a/mod/mod-ci-github-service-data.hxx b/mod/mod-ci-github-service-data.hxx
index f55a7dd..21c8a8f 100644
--- a/mod/mod-ci-github-service-data.hxx
+++ b/mod/mod-ci-github-service-data.hxx
@@ -104,7 +104,7 @@ namespace brep
timestamp iat_expires_at,
uint64_t installation_id,
string repository_node_id,
- string head_sha);
+ string report_sha);
// The pull_request constructor.
//
@@ -113,7 +113,7 @@ namespace brep
timestamp iat_expires_at,
uint64_t installation_id,
string repository_node_id,
- string head_sha,
+ string report_sha,
string repository_clone_url,
uint32_t pr_number);
diff --git a/mod/mod-ci-github.cxx b/mod/mod-ci-github.cxx
index 0336df3..16a8cc0 100644
--- a/mod/mod-ci-github.cxx
+++ b/mod/mod-ci-github.cxx
@@ -665,7 +665,7 @@ namespace brep
cr,
iat->token,
sd.repository_node_id,
- sd.head_sha,
+ sd.report_sha,
// @@ TODO What details URL to use? Omit.
"https://build2.org", // details URL.
build_state::building))
@@ -1116,7 +1116,7 @@ namespace brep
if (gq_create_check_runs (error,
crs,
iat->token,
- sd.repository_node_id, sd.head_sha,
+ sd.repository_node_id, sd.report_sha,
build_state::queued))
{
for (const check_run& cr: crs)
@@ -1527,7 +1527,7 @@ namespace brep
cr,
iat->token,
sd.repository_node_id,
- sd.head_sha,
+ sd.report_sha,
details_url (b),
build_state::built,
move (br)))