| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
Adds a new sync method to ProjectRemoteMirror to force an immediate remote mirror update via HTTP POST, along with corresponding test coverage and documentation.
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| tests/unit/objects/test_remote_mirrors.py | Added a responses.POST stub and test_sync_project_remote_mirror |
| gitlab/v4/objects/projects.py | Defined ProjectRemoteMirror.sync() with HTTP POST and decorators |
| docs/gl_objects/remote_mirrors.rst | Documented mirror.sync() usage |
gitlab/v4/objects/projects.py:1238
def sync(self, **kwargs: Any) -> dict[str, Any] | requests.Response:
docs/gl_objects/remote_mirrors.rst:40
Force push mirror update::
Sorry, something went wrong.
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## main #3232 +/- ##
=======================================
Coverage 97.32% 97.32%
=======================================
Files 98 98
Lines 6058 6062 +4
=======================================
+ Hits 5896 5900 +4
Misses 162 162
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Sorry, something went wrong.
There was a problem hiding this comment.
Perfect, thanks @JohnVillalovos!
Sorry, something went wrong.
Add ProjectRemoteMirror.sync() method to trigger immediate push mirror updates. Closes: #3223
| Back | FazBrowse Home | New Git URL |
Add ProjectRemoteMirror.sync() method to trigger immediate push mirror updates.
Closes: #3223