Skip to content

Commit

Permalink
Add sync to ProjectRemoteMirrors (jdalrymple#3616)
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnold Hendriks committed Sep 6, 2024
1 parent 146dc1a commit 54d7d5b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/core/src/resources/ProjectRemoteMirrors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,16 @@ export class ProjectRemoteMirrors<C extends boolean = false> extends BaseResourc
options,
);
}

sync<E extends boolean = false>(
projectId: string | number,
mirrorId: number,
options?: Sudo & ShowExpanded<E>,
): Promise<GitlabAPIResponse<void, C, E, void>> {
return RequestHelper.post<void>()(
this,
endpoint`projects/${projectId}/remote_mirrors/${mirrorId}/sync`,
options,
);
}
}

0 comments on commit 54d7d5b

Please sign in to comment.