Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ProjectRemoteMirrors is missing sync #3616

Closed
2 tasks done
unilynx opened this issue Aug 12, 2024 · 1 comment · Fixed by #3623
Closed
2 tasks done

ProjectRemoteMirrors is missing sync #3616

unilynx opened this issue Aug 12, 2024 · 1 comment · Fixed by #3623
Labels
released This issue/pull request has been released. type:feature Changes add a new feature

Comments

@unilynx
Copy link
Contributor

unilynx commented Aug 12, 2024

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

  • I have checked that this is not a duplicate issue.
  • I have read the documentation.
@jdalrymple
Copy link
Owner

🚀 Issue was released in 40.2.0 🚀

@jdalrymple jdalrymple added the released This issue/pull request has been released. label Sep 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released This issue/pull request has been released. type:feature Changes add a new feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants