You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/modules/repository
zeripath 9c318a17f5
Add `GetUserTeams` (#18499) (#18531)
Backport #18499

* 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 #18484

* 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>
3 years ago
..
commits.go Make AvatarRenderedSizeFactor configurable and set it to 3 (#17951) 3 years ago
commits_test.go Make AvatarRenderedSizeFactor configurable and set it to 3 (#17951) 3 years ago
create.go Some repository refactors (#17950) 3 years ago
create_test.go Add `GetUserTeams` (#18499) (#18531) 3 years ago
generate.go Some repository refactors (#17950) 3 years ago
hooks.go Move some functions into services/repository (#17677) 3 years ago
init.go Some repository refactors (#17950) 3 years ago
main_test.go Decouple unit test code from business code (#17623) 3 years ago
push.go Move repository model into models/repo (#17933) 3 years ago
repo.go Fix NPE on try to get tag reference via API (#18245) 3 years ago