aboutsummaryrefslogtreecommitdiff
path: root/mod/mod-ci-github.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2024-10-24 13:55:07 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2024-10-24 13:55:07 +0200
commit7728e2469fdf49307231d57a9fc5a2cf60aa535a (patch)
tree3ad3af847ed6cb61d88e3723b136b6ceef81253e /mod/mod-ci-github.cxx
parenta5fab430e168c25bea0bb6a5a00dbd4c6bf0e938 (diff)
Review
Diffstat (limited to 'mod/mod-ci-github.cxx')
-rw-r--r--mod/mod-ci-github.cxx11
1 files changed, 5 insertions, 6 deletions
diff --git a/mod/mod-ci-github.cxx b/mod/mod-ci-github.cxx
index 5c9bdc4..c1c31ae 100644
--- a/mod/mod-ci-github.cxx
+++ b/mod/mod-ci-github.cxx
@@ -704,13 +704,12 @@ namespace brep
//
// Distinguish between local and remote PRs by comparing the head and base
- // repositories' full names (which look like
- // <username>/<repository-name>).
+ // repositories' paths.
//
- enum service_data::kind kind (pr.pull_request.head_fullname ==
- pr.pull_request.base_fullname
- ? service_data::local
- : service_data::remote);
+ enum service_data::kind kind (
+ pr.pull_request.head_path == pr.pull_request.base_path
+ ? service_data::local
+ : service_data::remote);
// Note that check_sha will be set later, in build_unloaded_pre_check().
//