jdalrymple / gitbeaker

🦊🧪 A comprehensive and typed Gitlab SDK for Node.js, Browsers, Deno and CLI
Other
1.55k stars 295 forks source link

ProjectRemoteMirrors is missing `sync` #3616

Closed unilynx closed 3 weeks ago

unilynx commented 1 month ago

Description

Support for "Force push mirror update" is missing - https://docs.gitlab.com/ee/api/remote_mirrors.html#force-push-mirror-update

Proposal

I hotfixed the NPM module as follows, adding sync() to ProjectRemoteMirrors:

  sync(projectId, mirrorId) {
    return RequestHelper.post()(
      this,
      endpoint`projects/${projectId}/remote_mirrors/${mirrorId}/sync`
    );
  }

This seems to work

Checklist

jdalrymple commented 3 weeks ago

:rocket: Issue was released in 40.2.0 :rocket: