mirror of
https://github.com/go-gitea/gitea.git
synced 2024-05-11 05:55:29 +00:00
c9546d4cdd
* Add description in repository search. Signed-off-by: David Svantesson <[email protected]> * Refactor SearchRepositoryByName with a general function SearchRepository Signed-off-by: David Svantesson <[email protected]> * Allow to specify if description shall be included in API repo search. Signed-off-by: David Svantesson <[email protected]> * Add new app.ini setting for whether to search within repo description. Signed-off-by: David Svantesson <[email protected]> * Search keyword in description (if setting enabled) on: - Explore page - Organization profile page - User profile page - Admin repo page Do not search keyword in description on: - Any non-keyword search (not relevant) - Incremental search (uses API) Signed-off-by: David Svantesson <[email protected]> * Put parameters related to keyword directly after it Signed-off-by: David Svantesson <[email protected]> * Add test cases for including (and not including) repository description in search. Signed-off-by: David Svantesson <[email protected]> * Rename test function from TestSearchRepositoryByName to TestSearchRepository. Signed-off-by: David Svantesson <[email protected]> * Make setting SEARCH_REPO_DESCRIPTION default to true Signed-off-by: David Svantesson <[email protected]>