Commit Graph

11 Commits (98637fe76e70d8b963827354b2eed2e8f151ebd6)

Author SHA1 Message Date
wxiaoguang 9bfa9f450d
Refactor "string truncate" ()
TheFox0x7 33e8e82c4b
Enable tenv and testifylint rules ()
Enables tenv and testifylint linters
closes: https://github.com/go-gitea/gitea/issues/32842
Lunny Xiao 887928e0a6
Add missing two sync feed for refs/pull ()
Fowllow 
Lunny Xiao 1ed5f379b9
Move GetFeeds to service layer ()
Move GetFeeds from models to service layer, no code change.
Lunny Xiao 00f8090de4
Don't create action when syncing mirror pull refs ()
Fix 
Lunny Xiao 276500c314
Move AddCollabrator and CreateRepositoryByExample to service layer ()
- [x] Move `CreateRepositoryByExample` to service layer
- [x] Move `AddCollabrator` to service layer
- [x] Add a new parameter for `AddCollabrator` so that changing mode
immediately after that will become unnecessary.
JakobDev cf0df023be
More `db.DefaultContext` refactor ()
Part of 

This PR touches functions used in templates. As templates are not static
typed, errors are harder to find, but I hope I catch it all. I think
some tests from other persons do not hurt.
Lunny Xiao 673cf6af76
make writing main test easier ()
This PR removed `unittest.MainTest` the second parameter
`TestOptions.GiteaRoot`. Now it detects the root directory by current
working directory.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Lunny Xiao 4f32abaf94
move repository deletion to service layer ()
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Lunny Xiao 540bf9fa6d
Move notification interface to services layer ()
Extract from 
Lunny Xiao f064d716c3
Move feed notification service layer ()
Extract from