forgejo/modules/repository
Gusted d3b31cc1ee
Add GetUserTeams (#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: 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>
2022-02-01 14:09:24 -05:00
..
commits.go Propagate context and ensure git commands run in request context (#17868) 2022-01-19 23:26:57 +00:00
commits_test.go Propagate context and ensure git commands run in request context (#17868) 2022-01-19 23:26:57 +00:00
create.go Some repository refactors (#17950) 2021-12-12 23:48:20 +08:00
create_test.go Add GetUserTeams (#18499) 2022-02-01 14:09:24 -05:00
generate.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
hooks.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
init.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
main_test.go
push.go Propagate context and ensure git commands run in request context (#17868) 2022-01-19 23:26:57 +00:00
repo.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00