Commit Graph

7 Commits (a239d6c4a904c822f1af32545acb09ded8017d13)

Author SHA1 Message Date
zeripath fc4680ea71
In PushMirrorsIterate and MirrorsIterate if limit is negative do not set it ()
Mohamed Sekour 0e61a74e5a
Add new API endpoints for push mirrors management ()
- Add a new push mirror to specific repository
- Sync now ( send all the changes to the configured push mirrors )
- Get list of all push mirrors of a repository
- Get a push mirror by ID
- Delete push mirror by ID

Signed-off-by: Mohamed Sekour <mohamed.sekour@exfo.com>
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: zeripath <art27@cantab.net>
Chongyi Zheng 49f9d43afe
Implement sync push mirror on commit ()
Support synchronizing with the push mirrors whenever new commits are pushed or synced from pull mirror.

Related Issues: 

Co-authored-by: delvh <dev.lh@web.de>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Lunny Xiao fd7d83ace6
Move almost all functions' parameter db.Engine to context.Context ()
* Move almost all functions' parameter db.Engine to context.Context
* remove some unnecessary wrap functions
Lunny Xiao b75ad7b87f
Improve mirror iterator ()
* Improve mirror iterator

* fix test
6543 54e9ee37a7
format with gofumpt ()
* gofumpt -w -l .

* gofumpt -w -l -extra .

* Add linter

* manual fix

* change make fmt
Lunny Xiao 719bddcd76
Move repository model into models/repo ()
* Some refactors related repository model

* Move more methods out of repository

* Move repository into models/repo

* Fix test

* Fix test

* some improvements

* Remove unnecessary function