Skip to content
Snippets Groups Projects
Commit b9815ed5 authored by Antoine Lambert's avatar Antoine Lambert
Browse files

gogs: Ensure to list all repositories

In contrary of gitea listing which does not require to provide the q query
parameter, it is required for the gogs case.

After reading the gogs source code, the /repos/search endpoint generates
a sql request of the form: "SELECT * FROM repos WHERE name LIKE '%{q}%'".
By setting the q parameter value to "_", the LIKE clause acts as a
wildcard and all repositories are ensured to be returned.

Fixes #4698.
parent 206ac680
No related branches found
Tags v6.3.1
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment