aboutsummaryrefslogtreecommitdiff
path: root/mod/mod-ci-github.cxx
diff options
context:
space:
mode:
authorFrancois Kritzinger <francois@codesynthesis.com>2024-10-25 08:45:25 +0200
committerFrancois Kritzinger <francois@codesynthesis.com>2024-10-25 11:22:11 +0200
commit69d87bcad5b0c252fa4cc3ee09431a822d3352ae (patch)
treef925244af6bf9419cc795fa35a3075a58c57fce0 /mod/mod-ci-github.cxx
parent1bfb0c463d49e939dabc71fbb6adbc154915e619 (diff)
Post-review changes
Diffstat (limited to 'mod/mod-ci-github.cxx')
-rw-r--r--mod/mod-ci-github.cxx11
1 files changed, 8 insertions, 3 deletions
diff --git a/mod/mod-ci-github.cxx b/mod/mod-ci-github.cxx
index 4694599..6784db8 100644
--- a/mod/mod-ci-github.cxx
+++ b/mod/mod-ci-github.cxx
@@ -725,14 +725,18 @@ namespace brep
// Distinguish between local and remote PRs by comparing the head and base
// repositories' paths.
//
- enum service_data::kind kind (
+ service_data::kind_type kind (
pr.pull_request.head_path == pr.pull_request.base_path
? service_data::local
: service_data::remote);
- // Note that PR rebuilds (re-requested) are handled by check_suite().
+ // Note: For remote PRs the check_sha will be set later, in
+ // build_unloaded_pre_check().
//
- // Note that check_sha will be set later, in build_unloaded_pre_check().
+ string check_sha (kind == service_data::local ? pr.pull_request.head_sha
+ : "");
+
+ // Note that PR rebuilds (re-requested) are handled by check_suite().
//
service_data sd (warning_success,
move (iat->token),
@@ -740,6 +744,7 @@ namespace brep
pr.installation.id,
move (pr.repository.node_id),
kind, true /* pre_check */, false /* re_request */,
+ move (check_sha),
move (pr.pull_request.head_sha) /* report_sha */,
move (pr.repository.clone_url),
pr.pull_request.number);