From 54d7d5b0697a7ff8d2f398b572c181ff98ee7153 Mon Sep 17 00:00:00 2001 From: Arnold Hendriks Date: Fri, 6 Sep 2024 12:00:30 +0200 Subject: [PATCH] Add sync to ProjectRemoteMirrors (#3616) https://docs.gitlab.com/ee/api/remote_mirrors.html#force-push-mirror-update --- packages/core/src/resources/ProjectRemoteMirrors.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/packages/core/src/resources/ProjectRemoteMirrors.ts b/packages/core/src/resources/ProjectRemoteMirrors.ts index e1a90f0a3..2ce32ff29 100644 --- a/packages/core/src/resources/ProjectRemoteMirrors.ts +++ b/packages/core/src/resources/ProjectRemoteMirrors.ts @@ -113,4 +113,16 @@ export class ProjectRemoteMirrors extends BaseResourc options, ); } + + sync( + projectId: string | number, + mirrorId: number, + options?: Sudo & ShowExpanded, + ): Promise> { + return RequestHelper.post()( + this, + endpoint`projects/${projectId}/remote_mirrors/${mirrorId}/sync`, + options, + ); + } }