72 Commits (main)

Author SHA1 Message Date
Lunny Xiao e30a130b9a
Fix edit user email bug in API (#36068) 2 weeks ago
Lunny Xiao 5340db4dbe
Fix bug when updating user email (#36058) 2 weeks ago
Andrew Melnick 688430e3ce
Allow admins to rename non-local users (#35970) 3 weeks ago
wxiaoguang 0ce7d66368
Fix avatar upload error handling (#35887) 1 month ago
wxiaoguang 4fe1066a17
Replace gobwas/glob package (#35478) 3 months ago
Lunny Xiao e35e724e42
Use db.WithTx/WithTx2 instead of TxContext when possible (#35428) 3 months ago
wxiaoguang 0cbaa0b662
Remove incorrect "db.DefaultContext" usages (#35366) 4 months ago
Lunny Xiao 65cd3f5309
Use db.WithTx/WithTx2 instead of TxContext when possible (#35130) 5 months ago
TheFox0x7 eb36a4554e
enforce nolint scope (#34851) 6 months ago
wxiaoguang 0082cb51fa
Fix last admin check when syncing users (#34649) 6 months ago
wxiaoguang f6041441ee
Refactor FindOrgOptions to use enum instead of bool, fix membership visibility (#34629) 6 months ago
TheFox0x7 0fde8ecd55
Enable testifylint rules (#34075) 9 months ago
Lunny Xiao f88dbf86b3
Refactor repository transfer (#33211) 11 months ago
Lunny Xiao 751fe8b714
Move some errors to their own sub packages (#32880) 1 year ago
Lunny Xiao e4c4629465
Move RepoTransfer from models to models/repo sub package (#32506) 1 year ago
Lunny Xiao f62f68cbdd
Move team related functions to service layer (#32537) 1 year ago
Lunny Xiao a264c46fb0
Add warn log when deleting inactive users (#32318) 1 year ago
Lunny Xiao 9df5ddaf44
Only rename a user when they should receive a different name (#32247) 1 year ago
wxiaoguang 6029d78ab5
Improve the maintainblity of the reserved username list (#32229) 1 year ago
techknowlogick f183783baa
Save initial signup information for users to aid in spam prevention (#31852) 1 year ago
Lunny Xiao 58a03e9fad
Fix bug on avatar (#31008) 2 years ago
Chongyi Zheng e80466f734
Resolve lint for unused parameter and unnecessary type arguments (#30750) 2 years ago
silverwind 74f0c84fa4
Enable more `revive` linter rules (#30608) 2 years ago
Zettat123 0fe9f93eb4
Check the token's owner and repository when registering a runner (#30406) 2 years ago
wxiaoguang a008486f5c
Refactor DeleteInactiveUsers, fix bug and add tests (#30206) 2 years ago
Zettat123 136dd99e86
Skip email domain check when admins edit user emails (#29609) 2 years ago
Lunny Xiao e2277d07ca
Move some asymkey functions to service layer (#28894) 2 years ago
KN4CK3R c337ff0ec7
Add user blocking (#29028) 2 years ago
KN4CK3R 688d4a1f71
Unify password changing and invalidate auth tokens (#27625) 2 years ago
KN4CK3R f8b471ace1
Unify user update methods (#28733) 2 years ago
yp05327 ce0225c1b8
Forbid removing the last admin user (#28337) 2 years ago
Lunny Xiao 70c4aad8e1
Move more functions to db.Find (#28419) 2 years ago
delvh 778ad795fd
Refactor deletion (#28610) 2 years ago
Lunny Xiao df1e7d0067
Use db.Find instead of writing methods for every object (#28084) 2 years ago
Earl Warren 59f9ef9fee
Remove action runners on user deletion (#27902) 2 years ago
JakobDev 3dc0c962bf
Delete repos of org when purge delete user (#27273) 2 years ago
Lunny Xiao 9852c92e9a
Remove unnecessary parameter (#27671) 2 years ago
Lunny Xiao cddf245c12
Replace more db.DefaultContext (#27628) 2 years ago
JakobDev ebe803e514
Penultimate round of `db.DefaultContext` refactor (#27414) 2 years ago
JakobDev cc5df26680
Even more `db.DefaultContext` refactor (#27352) 2 years ago
Lunny Xiao 673cf6af76
make writing main test easier (#27270) 2 years ago
JakobDev 7047df36d4
Another round of `db.DefaultContext` refactor (#27103) 2 years ago
JakobDev f91dbbba98
Next round of `db.DefaultContext` refactor (#27089) 2 years ago
JakobDev 76659b1114
Reduce usage of `db.DefaultContext` (#27073) 2 years ago
Lunny Xiao 4f32abaf94
move repository deletion to service layer (#26948) 2 years ago
Earl Warren 7bde2bf809
add unit test for user renaming (#26261) 2 years ago
hiifong 4628aa5251
fix incorrect repo url when changed the case of ownername (#25733) 2 years ago
Lunny Xiao c59a057297
Refactor rename user and rename organization (#24052) 3 years ago
wxiaoguang 82224c54e0
Improve avatar uploading / resizing / compressing, remove Fomantic card module (#24653) 3 years ago
techknowlogick 03591f0f95
add user rename endpoint to admin api (#22789) 3 years ago