Movatterモバイル変換


[0]ホーム

URL:


ContentsMenuExpandLight modeDark modeAuto light/dark, in light modeAuto light/dark, in dark modeSkip to content
python-gitlabv6.1.0
python-gitlabv6.1.0

Table of Contents

Back to top

Project Pull Mirror

Pull Mirror allow you to set up pull mirroring for a project.

References

Examples

Get the current pull mirror of a project:

mirrors=project.pull_mirror.get()

Create (and enable) a remote mirror for a project:

mirror=project.pull_mirror.create({'url':'https://gitlab.com/example.git','enabled':True})

Update an existing remote mirror’s attributes:

mirror.enabled=Falsemirror.only_protected_branches=Truemirror.save()

Start an sync of the pull mirror:

mirror.start()
On this page

[8]ページ先頭

©2009-2025 Movatter.jp