gitea/modules/repository
zeripath 9c318a17f5
Add `GetUserTeams` () ()
Backport 

* Correct use `UserID` in `SearchTeams`

- Use `UserID` in the `SearchTeams` function, currently it was useless
to pass such information. Now it does a INNER statement to `team_user`
which obtains UserID -> TeamID data.
- Make OrgID optional.
- Resolves 

* Seperate searching specific user

* Add condition back

* Use correct struct type

Co-authored-by: Gusted <williamzijl7@hotmail.com>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
..
commits.go Make AvatarRenderedSizeFactor configurable and set it to 3 ()
commits_test.go Make AvatarRenderedSizeFactor configurable and set it to 3 ()
create.go Some repository refactors ()
create_test.go Add `GetUserTeams` () ()
generate.go Some repository refactors ()
hooks.go Move some functions into services/repository ()
init.go Some repository refactors ()
main_test.go Decouple unit test code from business code ()
push.go Move repository model into models/repo ()
repo.go Fix NPE on try to get tag reference via API ()