From aa6bd3507e44e9eb657ab8aaa85b6d7cc8c7ee20 Mon Sep 17 00:00:00 2001 From: Tim Diels Date: Mon, 15 Sep 2025 14:10:39 +0200 Subject: [PATCH] Add support for fetching remote mirror(s) for projects --- src/Api/Projects.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Api/Projects.php b/src/Api/Projects.php index 32aa168a..c23443c5 100644 --- a/src/Api/Projects.php +++ b/src/Api/Projects.php @@ -1280,4 +1280,14 @@ public function search(int|string $id, array $parameters = []): mixed return $this->get('projects/'.self::encodePath($id).'/search', $resolver->resolve($parameters)); } + + public function remoteMirrors(int|string $project_id): mixed + { + return $this->get('projects/'.self::encodePath($project_id).'/remote_mirrors'); + } + + public function remoteMirror(int|string $project_id, int $mirror_id): mixed + { + return $this->get('projects/'.self::encodePath($project_id).'/remote_mirrors/'.self::encodePath($mirror_id)); + } }