Add REST API endpoint to sync push mirrors
Contributes to https://gitlab.com/gitlab-org/gitlab/-/issues/388907 **Problem** It's not possible to trigger a push mirror sync via API. However, this functionality is available on UI. **Solution** * Add a new SyncService to handle push mirror sync logic * Add a new endpoint to handle API requests * Update API documentation Changelog: added
显示
- app/services/remote_mirrors/sync_service.rb 26 个添加, 0 个删除app/services/remote_mirrors/sync_service.rb
- doc/api/remote_mirrors.md 29 个添加, 0 个删除doc/api/remote_mirrors.md
- lib/api/remote_mirrors.rb 24 个添加, 0 个删除lib/api/remote_mirrors.rb
- locale/gitlab.pot 6 个添加, 0 个删除locale/gitlab.pot
- spec/requests/api/remote_mirrors_spec.rb 49 个添加, 0 个删除spec/requests/api/remote_mirrors_spec.rb
- spec/services/remote_mirrors/sync_service_spec.rb 64 个添加, 0 个删除spec/services/remote_mirrors/sync_service_spec.rb
加载中
想要评论请 注册 或 登录