1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-29 05:38:37 +00:00

Add search mode option to /api/repo/search (#2756)

* Add repo type option to /api/repo/search

* Add tests and fix result of collaborative filter in specific condition

* Fix/optimize search & tests

* Improve integration tests

* Fix lint errors

* Fix unit tests

* Change and improve internal implementation of repo search

* Use NonexistentID

* Make search api more general

* Change mirror and fork search behaviour

* Fix tests & typo in comment
This commit is contained in:
Morlinest
2017-10-26 23:16:13 +02:00
committed by Lauris BH
parent 4d01ecaef3
commit ddb7f59ef4
16 changed files with 502 additions and 139 deletions

View File

@@ -62,4 +62,16 @@
id: 11
user_id: 18
repo_id: 21
mode: 2 # write
mode: 2 # write
-
id: 12
user_id: 20
repo_id: 27
mode: 4 # owner
-
id: 13
user_id: 20
repo_id: 28
mode: 4 # owner