Commit Graph

12 Commits (main)

Author SHA1 Message Date
wxiaoguang 2ea929a952
Refactor RefName (#33234)
And fix some FIXMEs
3 weeks ago
wxiaoguang 9bfa9f450d
Refactor "string truncate" (#32984) 1 month ago
TheFox0x7 33e8e82c4b
Enable tenv and testifylint rules (#32852)
Enables tenv and testifylint linters
closes: https://github.com/go-gitea/gitea/issues/32842
2 months ago
Lunny Xiao 887928e0a6
Add missing two sync feed for refs/pull (#32815)
Fowllow #32659
2 months ago
Lunny Xiao 1ed5f379b9
Move GetFeeds to service layer (#32526)
Move GetFeeds from models to service layer, no code change.
2 months ago
Lunny Xiao 00f8090de4
Don't create action when syncing mirror pull refs (#32659)
Fix #27961
2 months ago
Lunny Xiao 276500c314
Move AddCollabrator and CreateRepositoryByExample to service layer (#32419)
- [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.
3 months ago
JakobDev cf0df023be
More `db.DefaultContext` refactor (#27265)
Part of #27065

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.
1 year ago
Lunny Xiao 673cf6af76
make writing main test easier (#27270)
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>
1 year ago
Lunny Xiao 4f32abaf94
move repository deletion to service layer (#26948)
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
1 year ago
Lunny Xiao 540bf9fa6d
Move notification interface to services layer (#26915)
Extract from #22266
1 year ago
Lunny Xiao f064d716c3
Move feed notification service layer (#26908)
Extract from #22266
1 year ago