Commit Graph

9 Commits (98d903a3c6060dd52e9301b3b965cb761cfd0789)

Author SHA1 Message Date
KN4CK3R 87be76213a
Add migrate from Codebase ()
This PR adds [Codebase](https://www.codebasehq.com/) as migration source.

Supported:
- Milestones
- Issues
- Pull Requests
- Comments
- Labels
Lunny Xiao 9defddb286
Move more model into models/user ()
* Move more model into models/user

* Remove unnecessary comment

Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Lunny Xiao a666829a37
Move user related model into models/user ()
* Move user related model into models/user

* Fix lint for windows

* Fix windows lint

* Fix windows lint

* Move some tests in models

* Merge
KN4CK3R 429ef43793
Use new OneDev /milestones endpoint ()
OneDev changed the API which fails every build at the moment.
wxiaoguang 013fb73068
Use `hostmatcher` to replace `matchlist`, improve security ()
Use hostmacher to replace matchlist.

And we introduce a better DialContext to do a full host/IP check, otherwise the attackers can still bypass the allow/block list by a 302 redirection.
Lunny Xiao fc3d082609
Move attachment into models/repo/ ()
* Move attachment into models/repo/

* Fix test

* Fix bug
99rgosse e1d655991b
Fix Migrate Description ()
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Lunny Xiao 3c3855a05c
Move user functions into user.go ()
* Move user functions into user.go

* Fix test
Lunny Xiao 7e1ae38097
Move migrations into services and base into modules/migration ()
* Move migrtions into services and base into modules/migration

* Fix imports

* Fix lint