TheFox0x7
e9f5105e95
Migrate to urfave v3 ( #34510 )
...
migrate cli to urfave v3
add more cli tests
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
6 months ago
Cheng
9de443ced2
chore: use errors.New to replace fmt.Errorf with no parameters will much better ( #30621 )
...
use errors.New to replace fmt.Errorf with no parameters will much better
2 years ago
Lunny Xiao
df1e7d0067
Use db.Find instead of writing methods for every object ( #28084 )
...
For those simple objects, it's unnecessary to write the find and count
methods again and again.
2 years ago
Lunny Xiao
1bf5527eac
Refactor Find Sources and fix bug when view a user who belongs to an unactive auth source ( #27798 )
...
The steps to reproduce it.
First, create a new oauth2 source.
Then, a user login with this oauth2 source.
Disable the oauth2 source.
Visit users -> settings -> security, 500 will be displayed.
This is because this page only load active Oauth2 sources but not all
Oauth2 sources.
2 years ago
JakobDev
76a85a4ce9
Final round of `db.DefaultContext` refactor ( #27587 )
...
Last part of #27065
2 years ago
JakobDev
ebe803e514
Penultimate round of `db.DefaultContext` refactor ( #27414 )
...
Part of #27065
---------
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2 years ago
Nanguan Lin
70f8d10fc5
move the `gitea admin` subcommands into separate files ( #27307 )
...
As title.
Probably it's better to put those sub cmd to different dirs. Will do
that in the future.
2 years ago